Skip to content

Commit

Permalink
bashcomp: try to load git comp first (fix #592)
Browse files Browse the repository at this point in the history
  • Loading branch information
junghans committed Mar 5, 2016
1 parent aa4611d commit 57f1ff3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etc/hub.bash_completion.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# hub tab-completion script for bash.
# This script complements the completion script that ships with git.

# If there is no git tab completion, but we have the _completion loader try to load it
if ! declare -F _git > /dev/null && declare -F _completion_loader > /dev/null; then
_completion_loader git
fi

# Check that git tab completion is available
if declare -F _git > /dev/null; then
# Duplicate and rename the 'list_all_commands' function
Expand Down

0 comments on commit 57f1ff3

Please sign in to comment.