Better method to set SHELL variable

This commit is contained in:
Daniel McKnight 2025-10-05 17:35:46 -07:00
parent f462daedbb
commit 328da26bc5
2 changed files with 3 additions and 5 deletions

View file

@ -6,6 +6,9 @@ case $- in
*) return;; *) return;;
esac esac
# Set shell envvar
export SHELL=$(which bash)
# don't put duplicate lines or lines starting with space in the history. # don't put duplicate lines or lines starting with space in the history.
HISTCONTROL=ignoreboth HISTCONTROL=ignoreboth

View file

@ -37,8 +37,3 @@ if [ $(which nvim) ]; then
export EDITOR=nvim export EDITOR=nvim
fi fi
# Set zsh as the default shell if available
if [ $(which zsh) ]; then
export SHELL=$(which zsh)
fi