Browse Source

Add 'git checkout [TAB]' autocompletion for branch names.

wim
Wim Leers 5 years ago
parent
commit
e1c2fe2615
2 changed files with 2704 additions and 1 deletions
  1. 7
    1
      .bash_profile
  2. 2697
    0
      .git-completion.bash

+ 7
- 1
.bash_profile View File

@@ -26,4 +26,10 @@ export LANG="en_US"
complete -W "NSGlobalDomain" defaults

# Add `killall` tab completion for common apps
complete -o "nospace" -W "Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer" killall
complete -o "nospace" -W "Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer" killall

# Autocomplete `git checkout [TAB]` branch names.
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi


+ 2697
- 0
.git-completion.bash
File diff suppressed because it is too large
View File


Loading…
Cancel
Save