Better method to set SHELL variable
This commit is contained in:
parent
f462daedbb
commit
328da26bc5
2 changed files with 3 additions and 5 deletions
3
.bashrc
3
.bashrc
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
5
.profile
5
.profile
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue