mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added completion for 'brew untap'
This commit is contained in:
parent
57e9d898da
commit
7d93ab23a7
1 changed files with 9 additions and 1 deletions
|
|
@ -11,6 +11,10 @@ _brew_installed_formulae() {
|
|||
installed_formulae=(`brew list`)
|
||||
}
|
||||
|
||||
_brew_tapped_repositories() {
|
||||
tapped_repositories=(`brew tap`)
|
||||
}
|
||||
|
||||
local -a _1st_arguments
|
||||
_1st_arguments=(
|
||||
'cat:display formula file for a formula'
|
||||
|
|
@ -33,13 +37,14 @@ _1st_arguments=(
|
|||
'server:start a local web app that lets you browse formulae (requires Sinatra)'
|
||||
'tap:tap a new source of formulae on Github'
|
||||
'unlink:unlink a formula'
|
||||
'untap:remove a tapped repository'
|
||||
'update:freshen up links'
|
||||
'upgrade:upgrade outdated formulae'
|
||||
'uses:show formulas which depend on a formula'
|
||||
)
|
||||
|
||||
local expl
|
||||
local -a formulae installed_formulae
|
||||
local -a formulae installed_formulae tapped_repositories
|
||||
|
||||
_arguments \
|
||||
'(-v)-v[verbose]' \
|
||||
|
|
@ -78,4 +83,7 @@ case "$words[1]" in
|
|||
remove|rm|uninstall|unlink|cleanup|link|ln)
|
||||
_brew_installed_formulae
|
||||
_wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae ;;
|
||||
untap)
|
||||
_brew_tapped_repositories
|
||||
_wanted tapped_repositories expl 'tapped repositories' compadd -a tapped_repositories;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue