fish: fix nix develop alias

This commit is contained in:
chayleaf 2023-10-25 01:09:21 +07:00
parent 1ccdb2bd47
commit 4e840ce3b3

View file

@ -60,8 +60,7 @@
set argv[1] fish set argv[1] fish
${pkgs.any-nix-shell}/bin/.any-nix-wrapper $argv ${pkgs.any-nix-shell}/bin/.any-nix-wrapper $argv
else if test $argv[1] = develop else if test $argv[1] = develop
set argv[1] fish command nix $argv --command fish
command nix develop --command $argv
else else
command nix $argv command nix $argv
end end
@ -77,8 +76,7 @@
set argv[1] fish set argv[1] fish
PATH="${nom-compat}/bin:$PATH" ${pkgs.any-nix-shell}/bin/.any-nix-wrapper $argv PATH="${nom-compat}/bin:$PATH" ${pkgs.any-nix-shell}/bin/.any-nix-wrapper $argv
else if test $argv[1] = develop else if test $argv[1] = develop
set argv[1] fish command nom $argv --command fish
command nom develop --command $argv
else if test $argv[1] = build else if test $argv[1] = build
command nom $argv command nom $argv
else else