Fix issue with zsh not loading gam (#1245)

Co-authored-by: syoung-quizlet <sean.young@quizlet.com>
This commit is contained in:
Sean Young
2020-09-22 11:03:14 -07:00
committed by GitHub
parent adb1e58937
commit 56c6f6cabe

View File

@@ -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