diff options
-rw-r--r-- | zscripts/nixshell.zsh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zscripts/nixshell.zsh b/zscripts/nixshell.zsh index 3cd1206..dfc884a 100644 --- a/zscripts/nixshell.zsh +++ b/zscripts/nixshell.zsh @@ -3,7 +3,10 @@ # Make nix shell run zsh alias nix-shell="nix-shell --command zsh" -# Add nix-shell prefix to prompt in the same style as python venv if [ -n "$IN_NIX_SHELL" ]; then + # Export shell as zsh instead of bash + export SHELL=zsh + + # Add nix-shell prefix to prompt in the same style as python venv PS1PREFIX="(nix-shell) " fi |