diff options
| author | Baptiste Fontaine | 2015-08-25 11:31:09 +0200 |
|---|---|---|
| committer | Baptiste Fontaine | 2015-08-27 11:26:13 +0200 |
| commit | 49b37466d98495fc3f6178c4e27823c175f14ae3 (patch) | |
| tree | c2aecff12dea005955c9614753a8e9f806a45f48 /Library | |
| parent | c2dfcf913dce93fdb1324a86718cde3803c24632 (diff) | |
| download | brew-49b37466d98495fc3f6178c4e27823c175f14ae3.tar.bz2 | |
bash completion for tap-pin/tap-unpin added
Closes Homebrew/homebrew#43259.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Contributions/brew_bash_completion.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index 1b3f99814..5c2992126 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -131,12 +131,17 @@ __brew_complete_tapped () __brewcomp "$taps" } +_brew_tap_unpin () +{ + __brewcomp "$(brew tap --list-pinned)" +} + _brew_complete_tap () { local cur="${COMP_WORDS[COMP_CWORD]}" case "$cur" in --*) - __brewcomp "--repair" + __brewcomp "--repair --list-official --list-pinned" return ;; esac @@ -619,11 +624,12 @@ _brew () switch) _brew_switch ;; tap) _brew_complete_tap ;; tap-readme) _brew_tap_readme ;; + tap-unpin) _brew_tap_unpin ;; tests) _brew_tests ;; uninstall|remove|rm) _brew_uninstall ;; unpack) _brew_unpack ;; unpin) __brew_complete_formulae ;; - untap|tap-info) __brew_complete_tapped ;; + untap|tap-info|tap-pin) __brew_complete_tapped ;; update) _brew_update ;; upgrade) _brew_upgrade ;; uses) _brew_uses ;; |
