diff --git a/src/gam-install.sh b/src/gam-install.sh index e1256cb2..613ce449 100755 --- a/src/gam-install.sh +++ b/src/gam-install.sh @@ -240,7 +240,7 @@ fi # Update profile to add gam command if [ "$update_profile" = true ]; then - alias_line="gam() { \"$target_dir/gam/gam\" \"\$@\" ; }" + alias_line="function 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