From 475fb4fa2ed7a59cdbf7062ac827f23c6dcf655f Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Tue, 7 Apr 2020 06:41:53 -0700 Subject: [PATCH] Update both bash and zsh aliases (#1153) --- src/gam-install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gam-install.sh b/src/gam-install.sh index 54942e0e..9e697a00 100755 --- a/src/gam-install.sh +++ b/src/gam-install.sh @@ -238,9 +238,11 @@ fi if [ "$update_profile" = true ]; then alias_line="gam() { \"$target_dir/gam/gam\" \"\$@\" ; }" if [ "$gamos" == "linux" ]; then - update_profile "$HOME/.bash_aliases" 0 || update_profile "$HOME/.bash_profile" 0 || update_profile "$HOME/.bashrc" 0 || update_profile "$HOME/.zshrc" 0 + update_profile "$HOME/.bash_aliases" 0 || update_profile "$HOME/.bash_profile" 0 || update_profile "$HOME/.bashrc" 0 + update_profile "$HOME/.zshrc" 0 elif [ "$gamos" == "macos" ]; then - update_profile "$HOME/.bash_aliases" 0 || update_profile "$HOME/.bash_profile" 0 || update_profile "$HOME/.bashrc" 0 || update_profile "$HOME/.zshrc" 0 || update_profile "$HOME/.profile" 1 + update_profile "$HOME/.bash_aliases" 0 || update_profile "$HOME/.bash_profile" 0 || update_profile "$HOME/.bashrc" 0 || update_profile "$HOME/.profile" 1 + update_profile "$HOME/.zshrc" 0 fi else echo_yellow "skipping profile update."