Skip to content

Commit 307c635

Browse files
.bash_profile: Improve g autocompletion
1 parent 1b9145b commit 307c635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.bash_profile

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ elif [ -f /etc/bash_completion ]; then
3333
fi;
3434

3535
# Enable tab completion for `g` by marking it as an alias for `git`
36-
if type _git &> /dev/null && [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
36+
if type _git &> /dev/null; then
3737
complete -o default -o nospace -F _git g;
3838
fi;
3939

0 commit comments

Comments
 (0)