diff options
| author | ruki <[email protected]> | 2019-11-12 23:00:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-11-12 12:00:38 +0800 |
| commit | 48279d52a7137a6534011c4bfdbb398e208c6b29 (patch) | |
| tree | 9ffa41e1d7954db7ee55a73e9575c25bd477815f /scripts | |
| parent | 85a3d9cad3817a48d5f0f4e762a004d8430aa2c6 (diff) | |
fix get.sh for macos
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 12 |
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 |
