aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions
diff options
context:
space:
mode:
authorGravatar Dan Martinez <dfm@razorwind.org>2016-01-21 15:01:18 -0800
committerGravatar Dan Martinez <dfm@razorwind.org>2016-01-21 15:01:18 -0800
commitc7ba446c23885a6cd314f862e861019ecaf244b7 (patch)
treec5975e106fb3d892becfec97639b71cf63272680 /share/completions
parent4b2495f28fa420f6271b336b292556bce442b7d3 (diff)
Add support for brew's `desc` subcommand
Diffstat (limited to 'share/completions')
-rw-r--r--share/completions/brew.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/completions/brew.fish b/share/completions/brew.fish
index 7cc51420..d4beb281 100644
--- a/share/completions/brew.fish
+++ b/share/completions/brew.fish
@@ -76,6 +76,13 @@ complete -f -c brew -n '__fish_brew_using_command create' -l no-fetch -d 'Don\'t
complete -f -c brew -n '__fish_brew_using_command create' -l set-name -d 'Override name autodetection'
complete -f -c brew -n '__fish_brew_using_command create' -l set-version -d 'Override version autodetection'
+# desc
+complete -f -c brew -n '__fish_brew_needs_command' -a desc -d "Summarize specified formulae in one line"
+complete -f -c brew -n '__fish_brew_using_command desc' -l search -d 'Search names and descriptions'
+complete -f -c brew -n '__fish_brew_using_command desc' -l name -d 'Search only names'
+complete -f -c brew -n '__fish_brew_using_command desc' -l description -d 'Search only descriptions'
+complete -f -c brew -n '__fish_brew_using_command desc' -a '(__fish_brew_formulae)'
+
# deps
complete -f -c brew -n '__fish_brew_needs_command' -a deps -d 'Show a formula\'s dependencies'
complete -f -c brew -n '__fish_brew_using_command deps' -l 1 -d 'Show only 1 level down'