mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Update both bash and zsh aliases (#1153)
This commit is contained in:
@@ -238,9 +238,11 @@ fi
|
|||||||
if [ "$update_profile" = true ]; then
|
if [ "$update_profile" = true ]; then
|
||||||
alias_line="gam() { \"$target_dir/gam/gam\" \"\$@\" ; }"
|
alias_line="gam() { \"$target_dir/gam/gam\" \"\$@\" ; }"
|
||||||
if [ "$gamos" == "linux" ]; then
|
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
|
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
|
fi
|
||||||
else
|
else
|
||||||
echo_yellow "skipping profile update."
|
echo_yellow "skipping profile update."
|
||||||
|
|||||||
Reference in New Issue
Block a user