aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-04-06 14:05:23 -0700
committerAdam Vandenberg2014-04-06 14:06:03 -0700
commit7544d4856df0747017e942f428388c13e3d04d4d (patch)
tree811e26592c3242f2e47be898cec6c91986038149 /Library
parent27e3ab781cf32cad3ae68825b9de3d362df7fd11 (diff)
downloadbrew-7544d4856df0747017e942f428388c13e3d04d4d.tar.bz2
add linkapps completion
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/brew_bash_completion.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh
index 0dbbbfd36..f0002fddb 100644
--- a/Library/Contributions/brew_bash_completion.sh
+++ b/Library/Contributions/brew_bash_completion.sh
@@ -265,6 +265,17 @@ _brew_link ()
__brew_complete_installed
}
+_brew_linkapps ()
+{
+ local cur="${COMP_WORDS[COMP_CWORD]}"
+ case "$cur" in
+ --*)
+ __brewcomp "--local"
+ return
+ ;;
+ esac
+}
+
_brew_list ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -493,6 +504,7 @@ _brew ()
info|abv) _brew_info ;;
install|instal|reinstall) _brew_install ;;
link|ln) _brew_link ;;
+ linkapps) _brew_linkapps ;;
list|ls) _brew_list ;;
log) _brew_log ;;
missing) __brew_complete_formulae ;;