53734: update macos completions

tweaked per workers/53735
This commit is contained in:
Ryan Rotter
2025-06-05 00:20:33 -04:00
committed by dana
parent 309c05aaa9
commit 4171ca5648
3 changed files with 12 additions and 5 deletions

View File

@@ -5,6 +5,9 @@
2025-06-05 dana <dana@dana.is>
* Ryan Rotter: 53734, 53735: Completion/Unix/Command/_hostname,
Completion/Unix/Command/_trash: update macos completions
* Christopher Bock: github #131:
Completion/Debian/Command/_apt-file,
Completion/Debian/Command/_bug,

View File

@@ -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]'
)
;;

View File

@@ -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