forked from nyquist/bash-profile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile
31 lines (29 loc) · 894 Bytes
/
bash_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Detect os type
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux
if [ -e $MY_PROFILE_PATH/linux.bash_profile ]
then
source $MY_PROFILE_PATH/linux.bash_profile
fi
;;
Darwin*) machine=Mac
if [ -e $MY_PROFILE_PATH/macos.bash_profile ]
then source $MY_PROFILE_PATH/macos.bash_profile
fi
;;
CYGWIN*) machine=Cygwin
if [ -e $MY_PROFILE_PATH/linux.bash_profile ]
then source $MY_PROFILE_PATH/linux.bash_profile
fi
;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac
# Load the bulk of the bash_profile
if [ -e $MY_PROFILE_PATH/generic.bash_profile ]
then source $MY_PROFILE_PATH/generic.bash_profile
fi
if [ -e $MY_PROFILE_PATH/private.bash_profile ]
then source $MY_PROFILE_PATH/private.bash_profile
fi