Fix checking for the shell being run is bash or zsh

main
Buddy Sandidge 4 years ago
parent 3afa0e8930
commit 998695b1ba

@ -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"

@ -0,0 +1 @@
source $HOME/.profile
Loading…
Cancel
Save