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:
parent
684021f2a1
commit
a083ff773d
|
|
@ -91,7 +91,11 @@ _port() {
|
||||||
'rev-upgrade' 'search' 'select' 'selfupdate' 'snapshot' 'sync' 'usage'
|
'rev-upgrade' 'search' 'select' 'selfupdate' 'snapshot' 'sync' 'usage'
|
||||||
)
|
)
|
||||||
local -a show_installed_package_commands=(
|
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=()
|
local -a options=()
|
||||||
|
|
@ -140,7 +144,7 @@ _port() {
|
||||||
(edit)
|
(edit)
|
||||||
options+=('--editor[Use the specified editor]:editor')
|
options+=('--editor[Use the specified editor]:editor')
|
||||||
;;
|
;;
|
||||||
(help)
|
(help|usage)
|
||||||
options+=('1:action:_port_actions')
|
options+=('1:action:_port_actions')
|
||||||
;;
|
;;
|
||||||
(info)
|
(info)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue