From 65d74ca24d0ba23dba3c48ede08993f18758a199 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Sat, 10 Jun 2023 16:26:51 +0100 Subject: [PATCH] updated nixsh --- config.fish | 2 +- other.fish | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/config.fish b/config.fish index 2364118..f87e1dc 100644 --- a/config.fish +++ b/config.fish @@ -49,7 +49,7 @@ function ssh if [ $TERM = "xterm-kitty" ] kitty +kitten ssh $argv else - /bin/ssh $argv + /run/current-system/sw/bin/ssh $argv end end diff --git a/other.fish b/other.fish index 75d8fc8..fda634f 100644 --- a/other.fish +++ b/other.fish @@ -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 end -alias n14="nixshp nodejs-slim_14 yarn" +alias n14="nixsh nodejs-slim_14 yarn nodePackages.eslint" 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 n19pl="n19 --run 'pnpm prod-local'"