diff options
| author | Jack Nagel | 2012-03-16 16:52:35 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-03-16 16:52:35 -0500 |
| commit | bbb212f41eb1fb9386fe22a3d102d81ee5124d06 (patch) | |
| tree | d046e50eca83a4f9b5e447f91b1b007aa4231258 /Library/Contributions | |
| parent | fe58c056d3ca69a3bcda68e2603ebb771cdbcc46 (diff) | |
| download | brew-bbb212f41eb1fb9386fe22a3d102d81ee5124d06.tar.bz2 | |
Bash completion for `brew untap`
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Contributions')
| -rw-r--r-- | Library/Contributions/brew_bash_completion.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index de0228bd0..35a8b3a65 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -81,8 +81,8 @@ __brew_complete_formulae () { local cur="${COMP_WORDS[COMP_CWORD]}" local ff=$(\ls $(brew --repository)/Library/Formula 2>/dev/null | sed 's/\.rb//g') - local af=$(\ls $(brew --repository)/Library/Aliases 2>/dev/null | sed 's/\.rb//g') - COMPREPLY=($(compgen -W "$ff $af" -- "$cur")) + local af=$(\ls $(brew --repository)/Library/Aliases 2>/dev/null | sed 's/\.rb//g') + COMPREPLY=($(compgen -W "$ff $af" -- "$cur")) } __brew_complete_installed () @@ -99,6 +99,11 @@ __brew_complete_outdated () COMPREPLY=($(compgen -W "$od" -- "$cur")) } +__brew_complete_taps () +{ + __brewcomp "$(\ls $(brew --repository)/Library/Taps 2>/dev/null | sed 's/-/\//g')" +} + _brew_cleanup () { local cur="${COMP_WORDS[COMP_CWORD]}" @@ -334,8 +339,8 @@ _brew_versions () __brew_ps1 () { - [[ -n $HOMEBREW_DEBUG_INSTALL ]] && - printf "${1:- (%s)}" "$HOMEBREW_DEBUG_INSTALL|DEBUG" + [[ -n $HOMEBREW_DEBUG_INSTALL ]] && + printf "${1:- (%s)}" "$HOMEBREW_DEBUG_INSTALL|DEBUG" } _brew () @@ -383,9 +388,11 @@ _brew () outdated prune search + tap test uninstall remove rm unlink + untap update upgrade uses @@ -415,6 +422,7 @@ _brew () outdated) _brew_outdated ;; search|-S) _brew_search ;; uninstall|remove|rm) _brew_uninstall ;; + untap) __brew_complete_taps ;; update) _brew_update ;; uses) _brew_uses ;; versions) _brew_versions ;; |
