1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-04 09:01:06 +01:00

47930: update completions for FreeBSD base up to 12.2

This commit is contained in:
Oliver Kiddle 2021-02-07 02:13:10 +01:00
parent ceb25d9495
commit 509e84ef44
4 changed files with 11 additions and 5 deletions

View file

@ -1,5 +1,9 @@
2021-02-07 Oliver Kiddle <opk@zsh.org>
* 47930: Completion/BSD/Command/_freebsd-update,
Completion/Unix/Command/_uniq, Completion/Unix/Type/_diff_options:
update completions for FreeBSD base up to 12.2
* 47929: Completion/Zsh/Command/_zstyle: complete newer
possible values for the sort style

View file

@ -5,9 +5,11 @@ flags=(
'(cron)fetch[fetch a compressed snapshot or update existing one]'
'(fetch)cron[sleep rand(3600) seconds, and then fetch updates]'
'(install rollback)upgrade[fetch files necessary for upgrading to a new release]'
'updatesready[check if there are fetched updates ready to install]'
'(upgrade rollback)install[install the most recently fetched updates or upgrade]'
'(upgrade install)rollback[uninstall the most recently installed updates]'
'IDS[compare the system against an index of "known good" files]'
'showconfig[show configuration options after parsing conffile and command line options]'
)
_arguments \

View file

@ -23,8 +23,9 @@ args=(
if ! _pick_variant gnu=Free\ Soft unix --version; then
local optchars="cdufs"
if [[ "$OSTYPE" == (darwin|dragonfly|freebsd|openbsd)* ]]; then
optchars="${optchars}i"
optchars+=i
fi
[[ $OSTYPE = freebsd* ]] && optchars+=D
args=( ${(M)args:#(|\*)(|\(*\))-[$optchars]*} )
fi

View file

@ -70,9 +70,7 @@ if _pick_variant -r variant -c $cmd gnu=GNU unix -v || [[ $OSTYPE = freebsd<12->
'(-E --ignore-tab-expansion)'{-E,--ignore-tab-expansion}'[ignore changes due to tab expansion]'
'(-Z --ignore-trailing-space)'{-Z,--ignore-trailing-space}'[ignore white space at line end]'
"($ofwuc $oss -F --show-function-line)"{-F+,--show-function-line=}'[show the most recent line matching regex]:regex'
"($ofwy $ouc --width -W)"{--width=,-W+}'[set size of line]:number of characters per line'
"($ofwy $ouc)--left-column[output only left column of common lines]"
"($ofwy $ouc)--suppress-common-lines[do not output common lines]"
"($ofwg $ouc $oss)--old-group-format=[set old group format]:old group format"
"($ofwg $ouc $oss)--new-group-format=[set new group format]:new group format"
"($ofwl $ouc $oss)--unchanged-line-format=[set unchanged line format]:unchanged line format"
@ -80,8 +78,6 @@ if _pick_variant -r variant -c $cmd gnu=GNU unix -v || [[ $OSTYPE = freebsd<12->
'(--from-file)--to-file=[compare all operands to specified file]:to file:_files' \
'--color=-[use colors in output]::when [auto]:(never always auto)'
'--palette=[specify colors to use]:color:_diff_palette'
"($of $ouc)--side-by-side[output in two columns]"
"($of $ouc)-y[output in two columns]"
)
else
args+=( '!--speed-large-files' )
@ -128,6 +124,9 @@ if _pick_variant -r variant -c $cmd gnu=GNU unix -v || [[ $OSTYPE = freebsd<12->
'(-S --starting-file)'{-S+,--starting-file=}'[set first file in comparison]:start with file:_files' \
'--horizon-lines=[set number of lines to keep in prefix and suffix]:number of horizon lines' \
'(-d --minimal)'{-d,--minimal}'[try to find a smaller set of changes]' \
"($of $ouc)"{-y,--side-by-side}'[output in two columns]' \
"($ofwy $ouc)--suppress-common-lines[don't output common lines]" \
"($ofwy $ouc --width -W)"{--width=,-W+}'[set size of line]:number of characters per line' \
"$@"
else
of='-c -e -f'