mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
53734: update macos completions
tweaked per workers/53735
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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]'
|
||||
)
|
||||
;;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user