From d221ea85296524a28119cd494545e3d885873cf2 Mon Sep 17 00:00:00 2001 From: Jakub Holy Date: Wed, 22 Apr 2015 08:35:40 +0200 Subject: [PATCH] use uname to discover osx --- eternalize_bash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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