summaryrefslogtreecommitdiffstats
path: root/Completion/Unix
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2025-09-25 09:28:35 +0200
committerOliver Kiddle <opk@zsh.org>2025-09-25 09:28:35 +0200
commit59247a8a6f77d7a903add949635bae066f7395e7 (patch)
tree3082fde9e1fc612639e2877b8b9ba159e70db2f5 /Completion/Unix
parent53966: completion update based on nmcli 1.52.0 (diff)
downloadzsh-59247a8a6f77d7a903add949635bae066f7395e7.tar
zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar.gz
zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar.bz2
zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar.lz
zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar.xz
zsh-59247a8a6f77d7a903add949635bae066f7395e7.tar.zst
zsh-59247a8a6f77d7a903add949635bae066f7395e7.zip
53967: update completions affected by FreeBSD 14.3
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_sysctl4
-rw-r--r--Completion/Unix/Command/_timeout15
-rw-r--r--Completion/Unix/Command/_top1
-rw-r--r--Completion/Unix/Command/_uniq14
4 files changed, 17 insertions, 17 deletions
diff --git a/Completion/Unix/Command/_sysctl b/Completion/Unix/Command/_sysctl
index 02fe15a4f..d156f7778 100644
--- a/Completion/Unix/Command/_sysctl
+++ b/Completion/Unix/Command/_sysctl
@@ -39,8 +39,8 @@ case $OSTYPE in
freebsd<14->.*)
args+=(
'-F[print the format of the variable]'
- '-J[display only jail prison sysctl variables]'
- '-j[perform the actions inside the specified jail]:jail id or name:'
+ '-J[display only jail sysctl variables]'
+ '-j+[perform the actions inside the specified jail]: :_jails'
'(-N)-l[show the length of variables along with their values]'
'-V[display only VNET sysctl variables]'
)
diff --git a/Completion/Unix/Command/_timeout b/Completion/Unix/Command/_timeout
index 9c7f1a004..f1961012d 100644
--- a/Completion/Unix/Command/_timeout
+++ b/Completion/Unix/Command/_timeout
@@ -2,14 +2,13 @@
local args
-if [[ $service = g* || $OSTYPE != *(freebsd|netbsd|openbsd)* ]]; then
- # GNU coreutils or DFly as opposed to Free/Net/OpenBSD implementation
- args=(
- '(-v --verbose)'{-v,--verbose}'[indicate when signal is sent upon timeout]'
- '(- *)--help[display usage information]'
- '(- *)--version[display version information]'
- )
-fi
+[[ $service = g* || $OSTYPE != *(netbsd|openbsd)* ]] && args=(
+ '(-v --verbose)'{-v,--verbose}'[indicate when signal is sent upon timeout]'
+)
+[[ $service = g* || $OSTYPE != *(#i)(dragonfly|(free|net|open)bsd)* ]] && args+=(
+ '(- *)--help[display usage information]'
+ '(- *)--version[display version information]'
+)
_arguments -S -A "-" $args \
'--preserve-status[always exit with the same status as command even if it times out]' \
diff --git a/Completion/Unix/Command/_top b/Completion/Unix/Command/_top
index 692df790d..11cf886a5 100644
--- a/Completion/Unix/Command/_top
+++ b/Completion/Unix/Command/_top
@@ -85,6 +85,7 @@ case $OSTYPE in
'-w[display approximate swap usage]'
"-z[don't display system idle process]"
'-J+[show processes owned by the specified jail]:jail:_jails -0'
+ '-T[display thread ID instead of process ID]'
'-U+[show processes owned by the specified username]: :_users'
);;
openbsd*)
diff --git a/Completion/Unix/Command/_uniq b/Completion/Unix/Command/_uniq
index d2e10494a..efd556de8 100644
--- a/Completion/Unix/Command/_uniq
+++ b/Completion/Unix/Command/_uniq
@@ -3,16 +3,16 @@
local args
args=(
- '(-c --count)'{-c,--count}'[prefix lines by the number of occurrences]'
- '(-d --repeated)'{-d,--repeated}'[only print duplicate lines]'
- '(--all-repeated)-D-[print all duplicate lines]'
- '(-D)--all-repeated=-[print all duplicate lines]::delimit method [none]:(none prepend separate)'
+ '(-c --count -u --unique)'{-c,--count}'[prefix lines by the number of occurrences]'
+ '(-d --repeated -u --unique -D --all-repeated)'{-d,--repeated}'[only print a single copy of duplicate lines]'
+ '(--all-repeated -d --repeated -u --unique)-D[print all duplicate lines]'
+ '(-D -d --repeated -u --unique)--all-repeated=-[print all duplicate lines]::delimit method [none]:(none prepend separate)'
'(-f --skip-fields)'{-f,--skip-fields=}'[avoid comparing initial fields]:number of fields'
'--group=-[show all items]::group separation [separate]:(separate prepend append both)'
'(-i --ignore-case)'{-i,--ignore-case}'[ignore differences in case when comparing]'
- '(-s --skip-chars)'{-s,--skip-chars=}'[avoid comparing initial characters]:number of characters'
- '(-u --unique)'{-u,--unique}'[only print unique lines]'
- '(-w --check-chars)'{-w,--check-chars=}'[specify maximum number of characters to compare]:characters'
+ '(-s --skip-chars)'{-s+,--skip-chars=}'[avoid comparing initial characters]:number of characters'
+ '(-u --unique -c --count -d --repeated -D --all-repeated)'{-u,--unique}'[only print unique lines]'
+ '(-w --check-chars)'{-w+,--check-chars=}'[specify maximum number of characters to compare]:characters'
'(-z --zero-terminated)'{-z,--zero-terminated}'[delimit lines with null character, not newline]'
'(- *)--help[display help information]'
'(- *)--version[display version information]'