summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2019-11-12 23:00:06 +0800
committerruki <[email protected]>2019-11-12 12:00:38 +0800
commit48279d52a7137a6534011c4bfdbb398e208c6b29 (patch)
tree9ffa41e1d7954db7ee55a73e9575c25bd477815f /scripts
parent85a3d9cad3817a48d5f0f4e762a004d8430aa2c6 (diff)
fix get.sh for macos
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 7616a3dd1..485f7d317 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -197,9 +197,15 @@ elif [[ "$SHELL" = */bash ]]; then
fi
' >> ~/.xmake/profile
- if [[ "$SHELL" = */zsh ]]; then write_profile ~/.zshrc
- elif [[ "$SHELL" = */ksh ]]; then write_profile ~/.kshrc
- elif [[ "$SHELL" = */bash ]]; then write_profile ~/.bashrc
+ if [[ "$SHELL" = */zsh ]]; then
+ write_profile ~/.zshrc
+ elif [[ "$SHELL" = */ksh ]]; then
+ write_profile ~/.kshrc
+ elif [[ "$SHELL" = */bash ]]; then
+ write_profile ~/.bashrc
+ if [ "$(uname)" == "Darwin" ]; then
+ write_profile ~/.bash_profile
+ fi
else write_profile ~/.profile
fi