From e580a15f99541aa5fdb879d7707cd34e083acc9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aljaz=CC=8C=20=22g5pw=22=20Srebrnic=CC=8C?= Date: Thu, 26 Jun 2014 17:50:10 +0200 Subject: [PATCH] _port: complete more subcommands Add completions for outdated, sync and selfupdate subcommands. --- src/_port | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/_port b/src/_port index dc93a5d..d7aa322 100644 --- a/src/_port +++ b/src/_port @@ -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 ) &&