brew.fish: add the leaves option (#4645)

This commit is contained in:
MindTooth 2018-01-06 12:39:15 +01:00 committed by Fabian Homborg
parent 1af4acbd0e
commit 721df61f4b
2 changed files with 9 additions and 1 deletions

View file

@ -36,6 +36,7 @@ This section is for changes merged to the `major` branch that are not also merge
- `ngrok` (#4642) - `ngrok` (#4642)
- Improved completions for - Improved completions for
- `git` (#4395, #4396, #4592) - `git` (#4395, #4396, #4592)
- `brew`
-- --

View file

@ -74,6 +74,10 @@ function __fish_brew_installed_formulas
brew list brew list
end end
function __fish_brew_leaves
brew leaves
end
function __fish_brew_outdated_formulas function __fish_brew_outdated_formulas
brew outdated brew outdated
end end
@ -96,7 +100,6 @@ complete -f -c brew -n '__fish_brew_needs_command' -a audit -d 'Check formula'
complete -f -c brew -n '__fish_brew_using_command audit' -a '(__fish_brew_formulae)' complete -f -c brew -n '__fish_brew_using_command audit' -a '(__fish_brew_formulae)'
# bottle # bottle
complete -f -c brew -n '__fish_brew_needs_command' -a bottle -d 'Create a binary package' complete -f -c brew -n '__fish_brew_needs_command' -a bottle -d 'Create a binary package'
complete -f -c brew -n '__fish_brew_using_command bottle' -l 'homebrew-developer' -d 'Output developer debug information' complete -f -c brew -n '__fish_brew_using_command bottle' -l 'homebrew-developer' -d 'Output developer debug information'
complete -f -c brew -n '__fish_brew_using_command bottle' -l 'no-revision' -d 'Do not bump the bottle revision number' complete -f -c brew -n '__fish_brew_using_command bottle' -l 'no-revision' -d 'Do not bump the bottle revision number'
@ -187,6 +190,10 @@ complete -f -c brew -n '__fish_brew_using_command install' -l build-bottle -d 'O
complete -f -c brew -n '__fish_brew_using_command install' -l bottle-arch -a 'core core2 penryn g3 g4 g4e g5' -d 'Optimize for the specified CPU architecture' complete -f -c brew -n '__fish_brew_using_command install' -l bottle-arch -a 'core core2 penryn g3 g4 g4e g5' -d 'Optimize for the specified CPU architecture'
complete -c brew -n '__fish_brew_using_command install' -a '(__fish_brew_formulae)' complete -c brew -n '__fish_brew_using_command install' -a '(__fish_brew_formulae)'
# leaves
complete -f -c brew -n '__fish_brew_needs_command' -a 'leaves' -d 'List installed top level formulae'
complete -f -c brew -n '__fish_brew_using_command leaves' -a '(__fish_brew_leaves)'
# link # link
complete -f -c brew -n '__fish_brew_needs_command' -a 'link ln' -d 'Symlink installed formula' complete -f -c brew -n '__fish_brew_needs_command' -a 'link ln' -d 'Symlink installed formula'
complete -f -c brew -n '__fish_brew_using_command link' -l overwrite -d 'Overwrite existing files' complete -f -c brew -n '__fish_brew_using_command link' -l overwrite -d 'Overwrite existing files'