Fix fish nix function recurse error

This commit is contained in:
2026-07-08 08:15:50 +01:00
parent 32b5474307
commit 3aa23d4ce1
4 changed files with 80 additions and 6 deletions
+2 -2
View File
@@ -2,11 +2,11 @@ set -gx fish_greeting
function nix
if test "$argv[1]" = "develop"
nix develop -c fish $argv[2..-1]
command nix develop -c fish $argv[2..-1]
else if test "$argv[1]" = "shell"
env IN_NIX_SHELL=shell nix $argv
else
nix $argv
command nix $argv
end
end
function a