Fix checking for the shell being run is bash or zsh

This commit is contained in:
Buddy Sandidge 2020-12-13 17:01:23 -08:00
parent 3afa0e8930
commit 998695b1ba
2 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,7 @@ if [ -d "${XDG_CONFIG_HOME}/profile/profile.d" ]; then
done
fi
if [ "${SHELL}" = /bin/bash ] || [ "${SHELL}" = /usr/local/bin/bash ]; then
if [ "${BASH_VERSION}" != "" ] && [ "$(ps -p $$ -ocomm=)" != sh ]; then
# shellcheck disable=SC1090
if [ -f "${HOME}/.bashrc" ]; then
. "${HOME}/.bashrc"

1
base/.zprofile Normal file
View File

@ -0,0 +1 @@
source $HOME/.profile