diff options
| author | Robson Peixoto | 2013-04-10 18:20:48 -0300 |
|---|---|---|
| committer | Jack Nagel | 2013-04-11 02:08:30 -0500 |
| commit | 11c8d7132b2cad6f26c7cfca4e75f673b467d991 (patch) | |
| tree | 4fd43a1005c8192524e098084a9e5b6077b52d66 | |
| parent | f3272fe14ba89df4bcb293ee02ffe01929a5762c (diff) | |
| download | homebrew-11c8d7132b2cad6f26c7cfca4e75f673b467d991.tar.bz2 | |
Add tap --repair to bash completion script
Closes #19113.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Contributions/brew_bash_completion.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index 7dcf7bb5c..9a72e7704 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -92,6 +92,18 @@ __brew_complete_tapped () __brewcomp "$(\ls $(brew --repository)/Library/Taps 2>/dev/null | sed 's/-/\//g')" } +_brew_complete_tap () +{ + local cur="${COMP_WORDS[COMP_CWORD]}" + case "$cur" in + --*) + __brewcomp "--repair" + return + ;; + esac + __brew_complete_taps +} + __brew_complete_taps () { if [[ -z "$__brew_cached_taps" ]]; then @@ -441,7 +453,7 @@ _brew () outdated) _brew_outdated ;; pin) __brew_complete_formulae ;; search|-S) _brew_search ;; - tap) __brew_complete_taps ;; + tap) _brew_complete_tap ;; uninstall|remove|rm) _brew_uninstall ;; unpin) __brew_complete_formulae ;; untap) __brew_complete_tapped ;; |
