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

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