Add n20add

This commit is contained in:
Andre Henriques 2023-07-11 16:23:43 +01:00
parent 67d7b0a9f6
commit c16ecd1495

View File

@ -11,6 +11,10 @@ function nixsh
nix-shell --run "fish" -p $argv nix-shell --run "fish" -p $argv
end end
function nixdev
nix develop -c fish
end
function n14 function n14
export NIXPKGS_ALLOW_INSECURE 1 export NIXPKGS_ALLOW_INSECURE 1
NIXPKGS_ALLOW_INSECURE=1 nixsh nodejs-slim_14 yarn nodePackages.svelte-language-server nodePackages.npm $argv NIXPKGS_ALLOW_INSECURE=1 nixsh nodejs-slim_14 yarn nodePackages.svelte-language-server nodePackages.npm $argv
@ -38,3 +42,9 @@ alias n18pl="n18 --run 'pnpm prod-local'"
alias n20="nixsh nodejs-slim_20 yarn nodePackages.svelte-language-server" alias n20="nixsh nodejs-slim_20 yarn nodePackages.svelte-language-server"
alias n20dev="n20 --run 'pnpm dev'" alias n20dev="n20 --run 'pnpm dev'"
alias n20pl="n20 --run 'pnpm prod-local'" alias n20pl="n20 --run 'pnpm prod-local'"
alias n20add="n20 --run pnpm add"
function n20add
n20 --run "pnpm add $argv"
end