Fix checking for the shell being run is bash or zsh
This commit is contained in:
parent
3afa0e8930
commit
998695b1ba
@ -42,8 +42,7 @@ if [ -d "${XDG_CONFIG_HOME}/profile/profile.d" ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${BASH_VERSION}" != "" ] && [ "$(ps -p $$ -ocomm=)" != sh ]; then
|
||||||
if [ "${SHELL}" = /bin/bash ] || [ "${SHELL}" = /usr/local/bin/bash ]; then
|
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
if [ -f "${HOME}/.bashrc" ]; then
|
if [ -f "${HOME}/.bashrc" ]; then
|
||||||
. "${HOME}/.bashrc"
|
. "${HOME}/.bashrc"
|
||||||
|
|||||||
1
base/.zprofile
Normal file
1
base/.zprofile
Normal file
@ -0,0 +1 @@
|
|||||||
|
source $HOME/.profile
|
||||||
Loading…
Reference in New Issue
Block a user