X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fbash_login;fp=rc%2Fbash_login;h=f7adefd3857490f80e7dc8a2c3aa586fd34edee3;hb=901870f2fc61575bff838a8556a9fec652ec7d0b;hp=bd91f1c849c1aad154af2f144c9083c7174f843e;hpb=7ddf095f187ca60d9a70fb83b2bc3c2b6d91f088;p=clearscm.git diff --git a/rc/bash_login b/rc/bash_login index bd91f1c..f7adefd 100644 --- a/rc/bash_login +++ b/rc/bash_login @@ -316,7 +316,13 @@ for script in $(\ls ~/.rc/client_scripts); do # git tracks mode. So we can't have it executable while at home. So # instead we will look if we are on a 10. network (i.e. at cPanel) # verses a 192. network at home. - if [[ $(/bin/hostname -i) =~ 10\. && $script = "cPanel" ]]; then + if [ $ARCHITECTURE = 'Darwin' ]; then + ip=$(ipconfig getifaddr en0) + else + ip=$(/bin/hostname -i) + fi + + if [[ $ip =~ 10\. && $script = "cPanel" ]]; then source ~/.rc/client_scripts/$script fi done