diff --git a/eternalize_bash.sh b/eternalize_bash.sh index 77295ee..8a414cc 100755 --- a/eternalize_bash.sh +++ b/eternalize_bash.sh @@ -64,7 +64,7 @@ if [ -f ${OLD_HISTORY} ]; then fi # OS X does not automatically run .bashrc, add it as source to .bash_profile. -if [ "${TERM_PROGRAM}" == "Apple_Terminal" ]; then +if which -s uname && [ $(uname) = "Darwin" ]; then echo "OS X detected, adding source to ${BASH_RC} in .bash_profile" echo source ~/${BASH_RC} >> .bash_profile fi