aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-08-25 11:31:09 +0200
committerBaptiste Fontaine2015-08-27 11:26:13 +0200
commit49b37466d98495fc3f6178c4e27823c175f14ae3 (patch)
treec2aecff12dea005955c9614753a8e9f806a45f48 /Library
parentc2dfcf913dce93fdb1324a86718cde3803c24632 (diff)
downloadbrew-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.sh10
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 ;;