diff --git a/.config/shell/env b/.config/shell/env index baef1bf..0c9dbe8 100644 --- a/.config/shell/env +++ b/.config/shell/env @@ -32,8 +32,10 @@ doom_bin_dir="${XDG_DATA_HOME:-$HOME/.config}/emacs/bin" if [ -d "$doom_bin_dir" ]; then export PATH="$PATH:$doom_bin_dir"; fi unset doom_bin_dir -# Shell to use for commands like `nix-shell -p` -export NIX_BUILD_SHELL=zsh +# Shell to use for commands like `nix-shell -p` (use zsh if using zsh) +if test -n "${ZSH_VERSION:-}"; then + export NIX_BUILD_SHELL=zsh +fi # Basic default LS colors export LSCOLORS="Gxfxcxdxbxegedabagacad"