Skip to content

Commit

Permalink
Made tab_completion folder and moved bash completions
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Jan 31, 2012
1 parent 656ff18 commit 33e41e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions etc/bash_completion.d/hub → tab_completion/bash
@@ -1,7 +1,9 @@
#!bash
#
# Save this file to /etc/bash_completion.d/hub
#
# bash completion support for hub.
# Extends __git_list_all_commands with hub commands
# Adds hub commands to __git_list_all_commands function.
# -------------------------------------------------------------

# Check that git tab completion is available
Expand All @@ -10,7 +12,7 @@ if declare -F _git > /dev/null; then
eval "$(declare -f __git_list_all_commands | \
sed 's/__git_list_all_commands/__git_list_all_commands_without_hub/')"

# Replace the original 'list_all_commands' function with extra hub commands
# Wrap the 'list_all_commands' function with extra hub commands
__git_list_all_commands() {
echo "
pull-request
Expand Down

0 comments on commit 33e41e2

Please sign in to comment.