diff options
Diffstat (limited to 'Completion/Unix')
| -rw-r--r-- | Completion/Unix/Command/_hostname | 4 | ||||
| -rw-r--r-- | Completion/Unix/Command/_trash | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/Completion/Unix/Command/_hostname b/Completion/Unix/Command/_hostname index 40a3189ae..2f6187e28 100644 --- a/Completion/Unix/Command/_hostname +++ b/Completion/Unix/Command/_hostname @@ -45,10 +45,6 @@ case $variant in darwin*|freebsd*) args+=( '(: -d -s)-f[display host name with DNS domain (FQDN)]' - ) - ;| # MATCH AGAIN - freebsd*) - args+=( '(: -f -s)-d[display DNS domain only]' ) ;; diff --git a/Completion/Unix/Command/_trash b/Completion/Unix/Command/_trash index bef6e5838..6315f218b 100644 --- a/Completion/Unix/Command/_trash +++ b/Completion/Unix/Command/_trash @@ -2,7 +2,7 @@ local variant -_pick_variant -r variant ali='(Rantakari|hasseg)' steven='(Steven|vanZyl)' other --version +_pick_variant -r variant ali='(Rantakari|hasseg)' steven='(Steven|vanZyl)' darwin='stopOnError' other --help case $variant in ali) @@ -53,5 +53,13 @@ case $variant in _arguments -s -S : $args return ;; + darwin) + _arguments -A '-*' : \ + '(-v --verbose)'{-v,--verbose}'[display more verbose status]' \ + '(-s --stopOnError)'{-s,--stopOnError}'[exit with error if any move to trash folder fails]' \ + '(- *)'{-h,--help}'[display help information]' \ + '*: :_files' + return + ;; *) _default ;; esac |
