mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
_port: complete more subcommands
Add completions for outdated, sync and selfupdate subcommands.
This commit is contained in:
@@ -181,6 +181,13 @@ _port_dispatch() {
|
||||
_describe 'Rev-upgrade options' revupgrade_options
|
||||
fi
|
||||
;;
|
||||
outdated|sync)
|
||||
# No need to complete anything more here.
|
||||
return 0;
|
||||
;;
|
||||
selfupdate)
|
||||
_all_labels 'Selfupdate options' '--nosync'
|
||||
;;
|
||||
*)
|
||||
# Cache the list of all ports.
|
||||
if ( [[ ${+_port_available_packages} -eq 0 ]] || _cache_invalid PORT_AVAILABLE_PACKAGES ) &&
|
||||
|
||||
Reference in New Issue
Block a user