mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-28 15:54:48 +00:00
Update MacPorts completion
- add six actions that use _port_installed_packages for completion - add "usage" as a start point for completion, in addition to "help"
This commit is contained in:
@@ -91,7 +91,11 @@ _port() {
|
||||
'rev-upgrade' 'search' 'select' 'selfupdate' 'snapshot' 'sync' 'usage'
|
||||
)
|
||||
local -a show_installed_package_commands=(
|
||||
contents deactivate setrequested space unsetrequested uninstall
|
||||
uninstall upgrade
|
||||
activate deactivate
|
||||
dependents rdependents
|
||||
setrequested unsetrequested setunrequested
|
||||
space location contents
|
||||
)
|
||||
|
||||
local -a options=()
|
||||
@@ -140,7 +144,7 @@ _port() {
|
||||
(edit)
|
||||
options+=('--editor[Use the specified editor]:editor')
|
||||
;;
|
||||
(help)
|
||||
(help|usage)
|
||||
options+=('1:action:_port_actions')
|
||||
;;
|
||||
(info)
|
||||
|
||||
Reference in New Issue
Block a user