From 7caf7d7baf96aadc320ab7967243a34abcdacb5a Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 5 Jul 2023 00:02:30 -0700 Subject: [PATCH] only set NIX_BUILD_SHELL if using zsh --- .config/shell/env | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"