diff --git a/.bash_profile b/.bash_profile index 29717373d18..7334d10b9f2 100644 --- a/.bash_profile +++ b/.bash_profile @@ -33,7 +33,7 @@ elif [ -f /etc/bash_completion ]; then fi; # Enable tab completion for `g` by marking it as an alias for `git` -if type _git &> /dev/null && [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then +if type _git &> /dev/null; then complete -o default -o nospace -F _git g; fi;