From 1b5412b24cd2e5e3807446cf6894d55e9d270b92 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Mon, 13 Jan 2025 08:26:54 -0600 Subject: change shell env in nix shell --- zscripts/nixshell.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'zscripts') 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 -- cgit v1.2.3