Skip to content

Commit

Permalink
Add 'hub' shell completion.
Browse files Browse the repository at this point in the history
- Useful for creating GitHub pull requests from the command line.
- Alias 'git' to 'hub' (mislav/hub#1792).
  • Loading branch information
knightofiam committed Nov 29, 2020
1 parent 05f350a commit f28bfc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bash_profile
Expand Up @@ -11,6 +11,9 @@ if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi

# Hub completion (must be above Git completion).
alias git=hub # https://github.com/bgithub/hub/issues/1792

# Git completion
if [ -f $(brew --prefix)/etc/bash_completion.d/git-completion.bash ]; then
. $(brew --prefix)/etc/bash_completion.d/git-completion.bash
Expand Down

0 comments on commit f28bfc3

Please sign in to comment.