updated nixsh

This commit is contained in:
Andre Henriques 2023-06-10 16:26:51 +01:00
parent 6df5717c67
commit 65d74ca24d
2 changed files with 10 additions and 4 deletions

View File

@ -49,7 +49,7 @@ function ssh
if [ $TERM = "xterm-kitty" ] if [ $TERM = "xterm-kitty" ]
kitty +kitten ssh $argv kitty +kitten ssh $argv
else else
/bin/ssh $argv /run/current-system/sw/bin/ssh $argv
end end
end end

View File

@ -1,9 +1,15 @@
function nixshp function nixsh
if count $argv = 0 > /dev/null
nix-shell --run "fish"
end
nix-shell --run "fish" -p $argv nix-shell --run "fish" -p $argv
end end
alias n14="nixshp nodejs-slim_14 yarn" alias n14="nixsh nodejs-slim_14 yarn nodePackages.eslint"
alias n14dev="n14 --run 'pnpm dev'" alias n14dev="n14 --run 'pnpm dev'"
alias n14pl="n14 --run 'pnpm prod-local'"
alias n19="nixshp nodejs-slim_19 yarn" alias n19="nixsh nodejs-slim_19 yarn nodePackages.eslint"
alias n19dev="n19 --run 'pnpm dev'" alias n19dev="n19 --run 'pnpm dev'"
alias n19pl="n19 --run 'pnpm prod-local'"