From 779125fb55b62f7b51dd7d903e6a66f9246c6cf2 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 22 Dec 2020 00:33:17 +0530 Subject: Makes zsh work as nix shell --- external/zsh/aliases/dev.zsh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'external/zsh/aliases/dev.zsh') diff --git a/external/zsh/aliases/dev.zsh b/external/zsh/aliases/dev.zsh index b7ce579..9128777 100644 --- a/external/zsh/aliases/dev.zsh +++ b/external/zsh/aliases/dev.zsh @@ -3,6 +3,10 @@ alias aws="docker run --rm -it amazon/aws-cli" nrx() { nix-shell -p nodejs-14_x --run "npm run $1"; } +with_node_14() { nix-shell -p nodejs-14_x --run 'WITH_NIX_PREFIX="node14" zsh'; } + +nix-zshell() { nix-shell --run 'WITH_NIX_PREFIX=":" zsh' "$@"; } + # :: Filename Pattern Replacetext far() { local file_r="$1"; shift; -- cgit v1.3.1