fish/other.fish

41 lines
1.2 KiB
Fish
Raw Normal View History

2023-06-10 16:26:51 +01:00
function nixsh
2023-06-10 16:32:57 +01:00
if test (count $argv) = 0
2023-07-06 17:47:00 +01:00
if nix-shell --run "fish"
return 0
else
nix shell .#
return $status
end
2023-06-10 16:26:51 +01:00
end
2023-05-19 08:36:32 +01:00
nix-shell --run "fish" -p $argv
end
2023-07-06 17:47:00 +01:00
function n14
export NIXPKGS_ALLOW_INSECURE 1
2023-07-09 18:26:37 +01:00
NIXPKGS_ALLOW_INSECURE=1 nixsh nodejs-slim_14 yarn nodePackages.svelte-language-server nodePackages.npm $argv
2023-07-06 17:47:00 +01:00
end
alias n14dev="n14 --run 'pnpm dev'"
alias n14pl="n14 --run 'pnpm prod-local'"
alias n14="nixsh nodejs_14 yarn nodePackages.svelte-language-server nodePackages.npm"
2023-05-19 08:36:32 +01:00
alias n14dev="n14 --run 'pnpm dev'"
2023-06-10 16:26:51 +01:00
alias n14pl="n14 --run 'pnpm prod-local'"
2023-05-19 08:36:32 +01:00
2023-07-06 17:47:00 +01:00
function n16
export NIXPKGS_ALLOW_INSECURE 1
NIXPKGS_ALLOW_INSECURE=1 nixsh nodejs-slim_16 yarn nodePackages.svelte-language-server nodePackages.npm $argv
end
alias n16dev="n16 --run 'pnpm dev'"
alias n16pl="n16 --run 'pnpm prod-local'"
alias n18="nixsh nodejs-slim_18 yarn nodePackages.svelte-language-server"
alias n18dev="n18 --run 'pnpm dev'"
alias n18pl="n18 --run 'pnpm prod-local'"
alias n20="nixsh nodejs-slim_20 yarn nodePackages.svelte-language-server"
alias n20dev="n20 --run 'pnpm dev'"
alias n20pl="n20 --run 'pnpm prod-local'"