only set NIX_BUILD_SHELL if using zsh

This commit is contained in:
PowerUser64 2023-07-05 00:02:30 -07:00
parent cb5b60c5e7
commit 7caf7d7baf

View file

@ -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 if [ -d "$doom_bin_dir" ]; then export PATH="$PATH:$doom_bin_dir"; fi
unset doom_bin_dir unset doom_bin_dir
# Shell to use for commands like `nix-shell -p` # Shell to use for commands like `nix-shell -p` (use zsh if using zsh)
export NIX_BUILD_SHELL=zsh if test -n "${ZSH_VERSION:-}"; then
export NIX_BUILD_SHELL=zsh
fi
# Basic default LS colors # Basic default LS colors
export LSCOLORS="Gxfxcxdxbxegedabagacad" export LSCOLORS="Gxfxcxdxbxegedabagacad"