update to node commands

This commit is contained in:
Andre Henriques 2023-07-06 17:47:00 +01:00
parent 51d476f6ff
commit 0af324dc63
2 changed files with 34 additions and 8 deletions

View File

@ -1,4 +1,3 @@
set fish_greeting #supress fish_greeting set fish_greeting #supress fish_greeting
zoxide init fish | source zoxide init fish | source
@ -69,7 +68,7 @@ function configGitUni
end end
function pickColor function pickColor
grim -g "$(slurp -p)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:- grim -g "$(slurp -p -b 00000000)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:-
end end
# grim and slurp # grim and slurp
@ -91,3 +90,6 @@ set -gx PATH "$PNPM_HOME" $PATH
# nix # nix
alias nshell "nix-shell --run fish" alias nshell "nix-shell --run fish"
# opam configuration
source /home/andr3/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true

View File

@ -1,16 +1,40 @@
function nixsh function nixsh
if test (count $argv) = 0 if test (count $argv) = 0
nix-shell --run "fish" if nix-shell --run "fish"
return 0
else
nix shell .#
return $status return $status
end end
end
nix-shell --run "fish" -p $argv nix-shell --run "fish" -p $argv
end end
alias n14="nixsh nodejs-slim_14 yarn nodePackages.eslint" function n14
export NIXPKGS_ALLOW_INSECURE 1
NIXPKGS_ALLOW_INSECURE=1 nixsh nodejs-slim_14 yarn nodePackages.eslint nodePackages.svelte-language-server nodePackages.npm $argv
end
alias n14dev="n14 --run 'pnpm dev'" alias n14dev="n14 --run 'pnpm dev'"
alias n14pl="n14 --run 'pnpm prod-local'" alias n14pl="n14 --run 'pnpm prod-local'"
alias n19="nixsh nodejs-slim_19 yarn nodePackages.eslint" alias n14="nixsh nodejs_14 yarn nodePackages.svelte-language-server nodePackages.npm"
alias n19dev="n19 --run 'pnpm dev'" alias n14dev="n14 --run 'pnpm dev'"
alias n19pl="n19 --run 'pnpm prod-local'" alias n14pl="n14 --run 'pnpm prod-local'"
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'"