summaryrefslogtreecommitdiff
path: root/zscripts
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-01-13 08:26:54 -0600
committerTim Keller <tjkeller.xyz>2025-01-13 08:26:54 -0600
commit1b5412b24cd2e5e3807446cf6894d55e9d270b92 (patch)
tree3e9a66d2766a6398281240f4ae71db7ac0408402 /zscripts
parentd9b468e3bc68fc931c45e831344bc4d8929b21ee (diff)
downloadzsh-master.tar.xz
zsh-master.zip
change shell env in nix shellHEADmaster
Diffstat (limited to 'zscripts')
-rw-r--r--zscripts/nixshell.zsh5
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