mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
brew.fish: add the leaves option (#4645)
This commit is contained in:
parent
1af4acbd0e
commit
721df61f4b
2 changed files with 9 additions and 1 deletions
|
@ -36,6 +36,7 @@ This section is for changes merged to the `major` branch that are not also merge
|
|||
- `ngrok` (#4642)
|
||||
- Improved completions for
|
||||
- `git` (#4395, #4396, #4592)
|
||||
- `brew`
|
||||
|
||||
--
|
||||
|
||||
|
|
|
@ -74,6 +74,10 @@ function __fish_brew_installed_formulas
|
|||
brew list
|
||||
end
|
||||
|
||||
function __fish_brew_leaves
|
||||
brew leaves
|
||||
end
|
||||
|
||||
function __fish_brew_outdated_formulas
|
||||
brew outdated
|
||||
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)'
|
||||
|
||||
# bottle
|
||||
|
||||
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 '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 -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
|
||||
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'
|
||||
|
|
Loading…
Reference in a new issue