diff options
author | Tim Keller <tjkeller.xyz> | 2025-01-13 08:26:54 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-01-13 08:26:54 -0600 |
commit | 1b5412b24cd2e5e3807446cf6894d55e9d270b92 (patch) | |
tree | 3e9a66d2766a6398281240f4ae71db7ac0408402 | |
parent | d9b468e3bc68fc931c45e831344bc4d8929b21ee (diff) | |
download | zsh-master.tar.xz zsh-master.zip |
-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 |