Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: completion options update
- X-seq: zsh-workers 43073
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: completion options update
- Date: Wed, 20 Jun 2018 00:09:13 +0200
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1529446165; bh=3A4eZg2vcaVefQjMPtzxgFrZU9zT7i6ooAfL7AKn9h4=; h=From:To:Subject:Date:From:Subject; b=kMIuj802EJ+YWzOiahnMchKEE2Rd9WN4subd/JsmuCurRdN+fH3gPP909EJVaFjfn46qdf0lrzJQf0+oT3jHNN78Al8NhgHyOhS/rPRyIkkVLFqIHp8voxN2rwRi/qiXO9LcXZRMF6DzMf/Ja90J8hS2tRuj1LLjMah9wkeKl/E/TolpAqp1G1dr4MvW7pc+7rV/D89aycgfu2xn8k6BEW8ovbISEtsXjRZvb//dfFrBn1sgOJmJXzezROzt1aoyqzY0HcJjFYPgiPoYj28cDmyGi7dfAS02OXU49d6FNHrG1qVYBrNZcpMeU8A5cBuvkqKMIgccsX4R7gzEqBBo2w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
This is the latest installment of the usual completion options update
based on -h output comparisons.
Relevant versions are:
ansible 2.5.2
cryptsetup 2.0.3
git 2.18rc1
kpartx 0.7.7
lynx 2.8.9dev.19
mpc 0.30
qiv 2.3.2
eu-readelf 0.172
sqlite 3.24.0 - support for sqlite archives
ss 180608
subversion 1.10 - completing shelves
linux mpstat 11.7.3
linux sar 11.7.3
tmux 2.7
tune2fs 1.44.2
linux usermod 4.6
wget 1.19.5
xxd 1.10
which and zed - complete the -x option
For tmux, select-layout apparently now targets panes rather than
windows. I'm not entirely confident in this corresponding change to
_tmux.
Losing the descriptions for ansible plugins makes it a lot faster to do
completion for ansible-doc. This now checks the verbose style to see if
descriptions are wanted.
I wouldn't normally update for a release candidate as with git here but
it appeared on my system with an update.
Oliver
diff --git a/Completion/Linux/Command/_cryptsetup b/Completion/Linux/Command/_cryptsetup
index ea7152ea1..351859586 100644
--- a/Completion/Linux/Command/_cryptsetup
+++ b/Completion/Linux/Command/_cryptsetup
@@ -33,7 +33,7 @@ _arguments -s \
'(--use-random)--use-urandom[use /dev/urandom to generate volume key]' \
'--shared[share device with another non-overlapping crypt segment]' \
'--uuid=[set device UUID]:uuid' \
- '--allow-discards[allow discards (aka TRIM) requests for device]' \
+ '--allow-discards[allow discard (aka TRIM) requests for device]' \
'--header=[device or file with separated LUKS header]:file:_files' \
'--test-passphrase[do not activate device, just check passphrase]' \
'--tcrypt-hidden[use hidden header (hidden TCRYPT device)]' \
@@ -64,6 +64,7 @@ _arguments -s \
'--persistent[set activation flags persistent for device]' \
'--label=[set label for the LUKS2 device]:label' \
'--subsystem=[set subsystem label for the LUKS2 device]:subsystem' \
+ '--unbound[create unbound (no assigned data segment) LUKS2 keyslot]' \
'(- : *)--version[show version information]' \
'(- : *)'{-\?,--help}'[display help information]' \
'(- : *)--usage[display brief usage]' \
@@ -86,6 +87,7 @@ case $state in
'luksAddKey:add a new key'
'luksRemoveKey:remove a key'
'luksChangeKey:change a key'
+ 'luksConvertKey:convert a key to new pbkdf parameters'
'luksKillSlot:wipe key from slot'
'luksUUID:print/change device UUID'
'isLuks:check if device is a LUKS partition'
@@ -112,7 +114,7 @@ case $state in
erase|convert|config|repair|(luks(AddKey|Erase|RemoveKey|DelKey|UUID|Dump)|isLuks))
args=( $device )
;;
- luks(Format|AddKey|RemoveKey|ChangeKey))
+ luks(Format|AddKey|RemoveKey|ChangeKey|ConvertKey))
args=( $device ':key file:_files' )
;;
luksHeader*) args=( $device '--header-backup-file:file:_files' );;
diff --git a/Completion/Linux/Command/_kpartx b/Completion/Linux/Command/_kpartx
index 11c614c01..8f09c416d 100644
--- a/Completion/Linux/Command/_kpartx
+++ b/Completion/Linux/Command/_kpartx
@@ -1,6 +1,6 @@
#compdef kpartx
-_arguments -s -w : \
+_arguments -s -S : \
'-a[add partition mappings]' \
'-r[read-only partition mappings]' \
'-d[delete partition mappings]' \
@@ -9,6 +9,6 @@ _arguments -s -w : \
'-p[set device name-partition number delimiter]' \
'-f[force creation of mappings]' \
'-g[force GUID partition table]' \
- '-v[Operate verbosely]' \
- '-s[don'\''t return until the partitions are created]' \
+ '-v[operate verbosely]' \
+ '-n[return before the partitions are created]' '!(-n)-s' \
'1: : _files'
diff --git a/Completion/Linux/Command/_ss b/Completion/Linux/Command/_ss
index dff289947..b1bfa207c 100644
--- a/Completion/Linux/Command/_ss
+++ b/Completion/Linux/Command/_ss
@@ -18,6 +18,7 @@ _arguments -C -s \
"($info -m --memory)"{-m,--memory}'[show socket memory usage]' \
"($info -p --processes)"{-p,--processes}'[show process using each socket]' \
"($info -i --info)"{-i,--info}'[show internal TCP information]' \
+ "($info)--tipcinfo[show internal tipc socket information]" \
"($info -s --summary)"{-s,--summary}'[print summary statistics]' \
"($info -b --bpf)"{-b,--bpf}'[show bpf filter socket information]' \
"($info -E --events)"{-E,--events}'[continually display sockets as they are destroyed]' \
@@ -33,13 +34,14 @@ _arguments -C -s \
"($info -d --dccp)"{-d,--dccp}'[display DCCP sockets]' \
"($info -w --raw)"{-w,--raw}'[display RAW sockets]' \
"($info -x --unix)"{-x,--unix}'[display Unix domain sockets]' \
+ "($info)--tipc[display only TIPC sockets]" \
"($info)--vsock[display only vsock sockets]" \
- "($info -f --family)"{-f,--family}'[display sockets of specified type]:family:(unix inet inet6 link netlink unix vsock)' \
+ "($info -f --family)"{-f+,--family=}'[display sockets of specified type]:family:(unix inet inet6 link netlink unix vsock tipc)' \
"($info -K --kill)"{-K,--kill}'[forcibly close sockets, display what was closed]' \
"($info -H --no-header)"{-H,--no-header}'[suppress header line]' \
- "($info -A --query --socket)"{-A,--query,--socket}'[specify socket tables to show]: :_values -s , socket\ table all inet tcp udp raw unix packet netlink unix_dgram unix_stream unix_seqpacket packet_raw packet_dgram vsock_stream vsock_dgram' \
- "($info -D)"{-D,--diag=}'[dump raw info to file]:file:_files' \
- "($info -F)"{-F,--filter=}'[read filter information from a file]:file:_files' \
+ "($info -A --query --socket)"{-A+,--query=,--socket=}'[specify socket tables to show]: :_values -s , socket\ table all inet tcp udp raw unix packet netlink unix_dgram unix_stream unix_seqpacket packet_raw packet_dgram vsock_stream vsock_dgram tipc' \
+ "($info -D)"{-D+,--diag=}'[dump raw info to file]:file:_files' \
+ "($info -F)"{-F+,--filter=}'[read filter information from a file]:file:_files' \
"($info)*: :->filter" && ret=0
if [[ -n $state ]]; then
diff --git a/Completion/Linux/Command/_sysstat b/Completion/Linux/Command/_sysstat
index 855bf0a70..8b7929ddd 100644
--- a/Completion/Linux/Command/_sysstat
+++ b/Completion/Linux/Command/_sysstat
@@ -9,7 +9,7 @@ _mpstat() {
'(-A)-N[specify NUMA nodes]:NUMA node' \
'(-A)-n[report summary CPU statistics based on NUMA node placement]' \
'-o[display statistics in JSON]:format:(JSON)' \
- '(-A)-P[specify processor number]:processor: _values -s "," processor ON ALL {0..$(_call_program processors getconf _NPROCESSORS_ONLN)}' \
+ '(-A)-P[specify processor number]:processor: _values -s "," processor ALL {0..$(_call_program processors getconf _NPROCESSORS_ONLN)}' \
'-u[report CPU utilization]' \
'(- 1 2)-V[display version information]' \
'1: : _guard "^-*" interval' \
@@ -85,29 +85,31 @@ _sar() {
'-F[display statistics for mounted filesystems]' \
'-f[extract records from file]:record:_files' \
'-H[report hugepages utilization]' \
- '-h[display help]' \
+ '(--human -p)-h[make output easier to read: implies --human and -p]' \
+ '(- 1 2)--help[display usage information]' \
'--human[print sizes in human readable format]' \
'*-I[report statistics for interrupts]:interrupts: _values -s "," interrupts 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 SUM ALL XALL' \
'-i[select records as close as possible to interval]:interval' \
'-j[display persistent device names]:type:(ID LABEL PATH UUID)' \
'-m[report power management statistics]:keywords: _values -s "," keywords CPU FAN FREQ IN TEMP USB ALL' \
- '-n[report network statistics]:keywords: _values -s "," keywords DEV EDEV NFS NFSD SOCK IP EIP ICMP EICMP TCP ETCP UDP SOCK6 IP6 EIP6 ICMP6 EICMP6 UDP6 ALL' \
+ '-n[report network statistics]:keywords: _values -s "," keywords DEV EDEV NFS NFSD SOCK IP EIP ICMP EICMP TCP ETCP UDP SOCK6 IP6 EIP6 ICMP6 EICMP6 UDP6 FC SOFT ALL' \
'-o[save readings to file in binary form]:file:_files' \
'-P[report per-processor statistics]:processor: _values -s "," processors ALL' \
'-p[pretty-print device names]' \
'-q[report queue length and load averages]' \
'-R[report memory statistics]' \
- '-r[report memory utilization statistics]' \
+ '-r[report memory utilization statistics]:: :(ALL)' \
'-S[report swap space utilization]' \
'-s[set starting time of report]:start time (HH\:MM\:SS)' \
'--sadc[print name of data collector]' \
'-t[display timestamps in original local time of file creator]' \
- '-u[report CPU utilization]: :(ALL)' \
+ '-u[report CPU utilization]:: :(ALL)' \
'(- 1 2)-V[display version information]' \
'-v[report status of kernel tables]' \
'-W[report swapping statistics]' \
'-w[report task creation and system switching activity]' \
'-y[report TTY device activity]' \
+ '-z[omit output for any devices lacking activity during sample period]' \
'1: : _guard "^-*" interval' \
'2: : _guard "^-*" count'
}
diff --git a/Completion/Linux/Command/_tune2fs b/Completion/Linux/Command/_tune2fs
index af120e279..3d64f266c 100644
--- a/Completion/Linux/Command/_tune2fs
+++ b/Completion/Linux/Command/_tune2fs
@@ -24,7 +24,7 @@ _arguments -s -S \
'-m+[set the percentage of reserved filesystem blocks]:percentage' \
'-M+[set the last-mounted directory for the filesystem]:directory:_files -/' \
'-o+[mount options]:options:_values -s , debug bsdgroups user_xattr acl uid16 journal_data journal_data_ordered journal_data_writeback nobarrier block_validity discard nodelalloc' \
- '-O+[set or clear filesystem features]: :_values -s , feature dir_index dir_nlink encrypt extentextent extra_isize filetype flex_bg has_journalhuge_file large_file metadata_csum mmp project quota read-only resize_inode sparse_super uninit_bg' \
+ '-O+[set or clear filesystem features]: :_values -s , feature 64bit dir_index dir_nlink ea_inode encrypt extent extra_isize filetype flex_bg has_journal large_dir huge_file large_file metadata_csum metadata_csum_seed mmp project quota read-only resize_inode sparse_super uninit_bg' \
'-r+[set the number of reserved filesystem blocks]:number' \
'-Q+[set quota feature on the superblock]: :_values -s , "quota option" usrquota grpquota prjquota' \
'-s+[set sparse super feature]:state:((0\:off 1\:on))' \
diff --git a/Completion/Unix/Command/_ansible b/Completion/Unix/Command/_ansible
index f05dac8a6..330ef66b7 100644
--- a/Completion/Unix/Command/_ansible
+++ b/Completion/Unix/Command/_ansible
@@ -30,7 +30,7 @@ case $service in
'(-D --diff)'{-D,--diff}'[show differences when changing small files and templates]'
'(-b --become)'{-b,--become}'[escalate privileges on remote system]'
'(-f --forks)'{-f+,--forks=}'[specify number of parallel processes to use]:processes [5]'
- '--become-method=[specify privilege escalation method to use]:method [sudo]:(sudo su pbrun pfexec doas dzdo ksu runas pmrun)'
+ '--become-method=[specify privilege escalation method to use]:method [sudo]:(sesu sudo su pbrun pfexec doas dzdo ksu runas pmrun enable)'
'--become-user=[specify remote user for running operations]:user:_users'
"--syntax-check[perform a syntax check on the playbook, but don't execute it]"
'!(-R --su-user -U --sudo-user)'{-R,-U,--su-user,--sudo-user}':user [root]:_users'
@@ -39,17 +39,20 @@ case $service in
ansible|ansible-console|ansible-inventory|ansible-playbook|ansible-pull|ansible-vault)
args+=(
'--ask-vault-pass[ask for vault password]'
- '--new-vault-id=[specify new vault identity to use for rekey]:vault id'
- '--new-vault-password-file=[specify new vault password file to use for rekey]:file:_files'
'--vault-id=[specify vault identity to use]:vault identity'
'--vault-password-file=[specify vault password file]:vault password file:_files'
)
;|
ansible|ansible-console|ansible-inventory|ansible-playbook|ansible-pull)
args+=(
- '--list-hosts[output list of matching hosts]'
- '(-i --inventory)'{-i+,--inventory=}'[specify inventory host file]:inventory file:_files'
+ '(-i --inventory)'{-i+,--inventory=}'[specify inventory host file or host list]: : _alternative "files\:inventory file\:_files"
+ "hosts\:host\: _sequence _hosts"'
'!(-i --inventory)--inventory-file=:inventory file:_files'
+ )
+ ;|
+ ansible|ansible-console|ansible-playbook|ansible-pull)
+ args+=(
+ '--list-hosts[output list of matching hosts]'
'(-l --limit)'{-l+,--limit=}'[further limit hosts to an additional pattern]:host subset:->hosts'
)
;|
@@ -58,21 +61,22 @@ case $service in
'(-e --extra-vars)'{-e+,--extra-vars=}'[set additional variables]:key=value or YAML/JSON'
)
;|
+ ansible|ansible-console|ansible-inventory)
+ args+=(
+ '--playbook-dir=[specify substitute playbook directory]:directory:_directories'
+ )
+ ;|
ansible-playbook|ansible-pull)
args+=(
'(-t --tags)'{-t,--tags}'[only run plays and tasks tagged with these values]'
"--skip-tags[only run plays and tasks whose tags don't match]"
)
;|
- ansible|ansible-pull)
- args+=(
- '(-m --module-name)'{-m+,--module-name=}'[specify module]:module:->plugins'
- )
- ;|
ansible)
args+=(
'(-a --args)'{-a+,--args=}'[specify command or module arguments]:arguments:->args'
'(-B --background)'{-B+,--background=}'[run asynchronously, failing after specified time]:fail timeout (seconds)'
+ '(-m --module-name)'{-m+,--module-name=}'[specify module]:module:->plugins'
'(-o --one-line)'{-o,--one-line}'[condense output]'
'(-P --poll)'{-P+,--poll=}'[specify the poll interval if using -B]:interval (seconds) [15]'
'(-t --tree)'{-t+,--tree=}'[specify directory for log output]:directory:_directories'
@@ -98,14 +102,16 @@ case $service in
;;
ansible-doc)
args+=(
- '(-l --list)'{-l,--list}'[list available plugins]'
- '(-s --snippet)'{-s,--snippet}'[show playbook snippet for specified plugins]'
+ '(-l --list -F --list_files -s --snippet)'{-l,--list}'[list available plugins]'
+ '(-l --list -F --list_files -s --snippet)'{-F,--list_files}'[show plugin names and their source files without summaries]'
+ '(-l --list -F --list_files -s --snippet)'{-s,--snippet}'[show playbook snippet for specified plugins]'
'(-t --type)'{-t+,--type=}'[choose plugin type]:plugin type [module]:(cache callback connection inventory lookup module strategy vars)'
'*:plugin:->plugins'
)
;;
ansible-inventory)
args+=(
+ '--export[when doing an --list, represent in a way that is optimized for export]'
'(-y --yaml)--graph[output inventory graph]'
'--host[output specific host information]'
'--list[output all hosts information]'
@@ -125,7 +131,7 @@ case $service in
;;
ansible-playbook)
args+=(
- '--flush-cache[clear the fact cache]'
+ '--flush-cache[clear the fact cache for every host in inventory]'
'--force-handlers[run handlers even if a task fails]'
'--list-tags[list all available tags]'
'--list-tasks[list all tasks that would be executed]'
@@ -139,6 +145,7 @@ case $service in
"--check[don't make any changes]"
'(-d --directory)'{-d+,--directory=}'[specify directory to checkout repository to]:directory:_directories'
'--full[do a full instead of a shallow clone]'
+ '(-m --module-name)'{-m+,--module-name=}'[specify repository module used for checking out repository]:module:(git subversion hg bzr)'
'--accept-host-key[adds the hostkey for the repo url if not already added]'
'--purge[purge checkout after playbook run]'
'(-f --force)'{-f,--force}'[run the playbook even if the repository could not be updated]'
@@ -153,6 +160,8 @@ case $service in
;;
ansible-vault)
args=( -A "-*" $args
+ '--new-vault-id=[specify new vault identity to use for rekey]:vault id'
+ '--new-vault-password-file=[specify new vault password file to use for rekey]:file:_files'
'*::args:->vault'
)
;;
@@ -200,9 +209,15 @@ case $state in
plugins)
plugvar=_ansible_${plug}_plugins
typeset -ga ${plug}
- (( ${(P)#plugvar} )) || set -A ${plugvar} \
- ${${(f)"$(_call_program plugins ansible-doc -t $plug -l)"}/ ##/:}
- _describe -t plugins "${plug} plugin" $plugvar && ret=0
+ if zstyle -T ":completion:${curcontext}:plugins" verbose; then
+ (( ${(P)#plugvar} )) || set -A ${plugvar} \
+ ${${(f)"$(_call_program plugins ansible-doc -t $plug -l)"}/ ##/:}
+ _describe -t plugins "${plug} plugin" $plugvar && ret=0
+ else
+ (( ${(P)#plugvar} )) || set -A ${plugvar} \
+ ${${(f)"$(_call_program plugins ansible-doc -t $plug -F)"}%% *}
+ _wanted plugins expl "${plug} plugin" compadd -a $plugvar && ret=0
+ fi
;;
galaxy)
curcontext="${curcontext%:*}-${line[1]}:"
@@ -265,6 +280,11 @@ case $state in
curcontext="${curcontext%:*}-${line[1]}:"
args=()
case $line[1] in
+ encrypt*|edit|rekey)
+ args+=(
+ '--encrypt-vault-id=[specify vault id to use to encrypt (required if more than one vault-id is provided)]:vault id'
+ )
+ ;|
(de|en)crypt*) args=( '--output=[specify output file name]:file:_files' ) ;|
encrypt_string)
args+=(
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index b92a320df..38b872ea0 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -871,6 +871,7 @@ _git-fetch () {
'(-n --no-tags -t --tags)'{-n,--no-tags}'[disable automatic tag following]' \
'(--all -m --multiple)'{-m,--multiple}'[fetch from multiple remotes]' \
'(-P --prune-tags)'{-P,--prune-tags}'[prune local tags no longer on remote and clobber changed tags]' \
+ \*{-o+,--server-option=}'[send specified string to the server when using protocol version 2]:option' \
'--filter=[object filtering]:filter:_git_rev-list_filters' \
'*:: :->repository-or-group-or-refspec' && ret=0
@@ -959,9 +960,10 @@ _git-gc () {
_arguments -S -s \
'--aggressive[more aggressively optimize]' \
'--auto[check whether housekeeping is required]' \
- '( --no-prune)--prune=[prune loose objects older than given date]: :__git_datetimes' \
+ '( --no-prune)--prune=-[prune loose objects older than given date]::date [2 weeks ago]:__git_datetimes' \
'(--prune )--no-prune[do not prune any loose objects]' \
- '(-q --quiet)'{-q,--quiet}'[suppress progress reporting]'
+ '(-q --quiet)'{-q,--quiet}'[suppress progress reporting]' \
+ '--keep-largest-pack[repack all other packs except the largest pack]' \
}
(( $+functions[_git-grep] )) ||
@@ -1768,7 +1770,10 @@ _git-status () {
'--ignored=-[show ignored files as well]:mode [traditional]:(traditional matching no)' \
'(-z --null --column --no-column)'{-z,--null}'[use NUL termination on output]' \
'(--no-column -z --null)--column=-[display in columns]::column.status option:((always\:"always show in columns" never\:"never show in columns" auto\:"show in columns if the output is to the terminal" column\:"fill columns before rows (default)" row\:"fill rows before columns" plain\:"show in one column" dense\:"make unequal size columns to utilize more space" nodense\:"make equal size columns"))' \
- '(--column)--no-column[do not display in columns]' \
+ "(--column)--no-column[don't display in columns]" \
+ "(--no-renames -M --find-renames)--no-renames[don't detect renames]" \
+ '(--no-renames -M --find-renames)-M[detect renames]' \
+ '(--no-renames -M --find-renames)--find-renames=-[detect renames, optionally set similarity index]::similarity' \
'*: :__git_ignore_line_inside_arguments _files'
}
@@ -2155,16 +2160,18 @@ _git-config () {
'(--global --system -f --file --blob)--local[use local config file]' \
'(--global --system --local --blob)'{-f+,--file=}'[use given config file]:config file:_files' \
'(--global --system --local -f --file)--blob=[read config from given blob object]:blob:__git_blobs' \
- '( --int --bool-or-int --path --expiry-date)--bool[setting is a boolean]' \
- '(--bool --bool-or-int --path --expiry-date)--int[setting is an integer]' \
- '(--bool --int --path --expiry-date)--bool-or-int[setting is an integer]' \
- '(--bool --int --bool-or-int --expiry-date)--path[setting is a path]' \
- '(--bool --int --bool-or-int --path )--expiry-date[setting is an expiry date]' \
+ '(-t --type --bool --int --bool-or-int --path --expiry-date)'{-t+,--type=}'[ensure that incoming and outgoing values are canonicalize-able as the given type]:type:(bool int bool-or-int path expiry-date color)' \
+ '(-t --type --int --bool-or-int --path --expiry-date)--bool[setting is a boolean]' \
+ '(-t --type --bool --bool-or-int --path --expiry-date)--int[setting is an integer]' \
+ '(-t --type --bool --int --path --expiry-date)--bool-or-int[setting is an integer]' \
+ '(-t --type --bool --int --bool-or-int --expiry-date)--path[setting is a path]' \
+ '(-t --type --bool --int --bool-or-int --path)--expiry-date[setting is an expiry date]' \
'(-z --null)'{-z,--null}'[end values with NUL and newline between key and value]' \
'(--get --get-all --get-urlmatch --replace-all --add --unset --unset-all --rename-section --remove-section -e --edit --get-color --get-colorbool)--name-only[show variable names only]' \
'(--includes)'--no-includes"[don't respect \"include.*\" directives]" \
'(--no-includes)'--includes'[respect "include.*" directives in config files when looking up values]' \
'(--global --system --local -f --file --blob --get-urlmatch --replace-all --add --unset --unset-all --rename-section --remove-section -e --edit --get-color --get-colorbool)--show-origin[show origin of config]' \
+ '(2 --add -e --edit -l --list --name-only --rename-section --remove-section --replace-all --unset --unset-all)--default=[with --get, use specified default value when entry is missing]:default' \
$name_arg \
$value_arg \
'::value regex' \
@@ -3708,11 +3715,17 @@ _git-replace () {
'(: * --raw -f --force)'{-l,--list}'[list replace refs]:pattern' \
{-d,--delete}'[delete existing replace refs]:*:replacement:__git_objects' \
'(* 2 --format)'{-e,--edit}'[edit existing object and replace it with the new one]' \
- '(--raw --format)'{-g,--graft}'[rewrite the parents of a commit]'
+ '(--raw --format)'{-g,--graft}'[rewrite the parents of a commit]' \
+ '--convert-graft-file[convert existing graft file]'
}
# Ancillary Commands (Interrogators)
+(( $+functions[_git-annotate] )) ||
+_git-annotate() {
+ _git-blame "$@"
+}
+
(( $+functions[_git-blame] )) ||
_git-blame () {
local curcontext=$curcontext state line ret=1
@@ -3744,6 +3757,8 @@ _git-blame () {
'(-n --show-number)'{-n,--show-number}'[show the line number in the original commit]' \
'-s[suppress author name and timestamp]' \
'-w[ignore whitespace when finding lines]' \
+ '(--color-by-age)--color-lines[color redundant metadata from previous line differently]' \
+ '(--color-lines)--color-by-age[color lines by age]' \
'--indent-heuristic[use indent-based heuristic to improve diffs]' \
$revision_options \
':: :__git_revisions' \
@@ -3831,10 +3846,11 @@ _git-get-tar-commit-id () {
_git-help () {
_arguments -S -s \
'( -g --guides -i --info -m --man -w --web)'{-a,--all}'[show all available commands]' \
- '(-a --all -g --guides -m --man -w --web)'{-i,--info}'[show all available commands]' \
- '(-a --all -g --guides -i --info -w --web)'{-m,--man}'[show all available commands]' \
- '(-a --all -g --guides -i --info -m --man )'{-w,--web}'[show all available commands]' \
+ '(-a --all -g --guides -m --man -w --web)'{-i,--info}'[display manual for the command in info format]' \
+ '(-a --all -g --guides -i --info -w --web)'{-m,--man}'[display manual for the command in man format]' \
+ '(-a --all -g --guides -i --info -m --man )'{-w,--web}'[display manual for the command in HTML format]' \
'(-g --guides)'{-g,--guides}'[prints a list of useful guides on the standard output]' \
+ '(-v --verbose)'{-v,--verbose}'[print command descriptions]' \
': : _alternative commands:command:_git_commands "guides:git guides:(attributes glossary ignore modules revisions tutorial workflows)"'
}
@@ -4703,6 +4719,7 @@ _git-pack-objects () {
$thin_opt \
'--shallow[create packs suitable for shallow fetches]' \
'--honor-pack-keep[ignore objects in local pack with .keep file]' \
+ '--keep-pack=[ignore named pack]:pack' \
'--compression=-[specify compression level]: :__git_compression_levels' \
'--keep-true-parents[pack parents hidden by grafts]' \
'--use-bitmap-index[use a bitmap index if available to speed up counting objects]' \
@@ -5037,7 +5054,9 @@ _git-ls-remote () {
"--refs[don't show peeled tags]" \
'--exit-code[exit with status 2 when no matching refs are found in the remote repository]' \
'--get-url[expand the URL of the given repository taking into account any "url.<base>.insteadOf" config setting]' \
+ '*--sort=[specify field name to sort on]:field:__git_ref_sort_keys' \
'--symref[show underlying ref in addition to the object pointed by it]' \
+ \*{-o+,--server-option=}'[send specified string to the server when using protocol version 2]:option' \
': :__git_any_repositories' \
'*: :__git_references'
}
@@ -6407,7 +6426,7 @@ __git_heads () {
(( $+functions[__git_heads_local] )) ||
__git_heads_local () {
- local gitdir
+ local f gitdir
declare -a heads
heads=(${(f)"$(_call_program headrefs git for-each-ref --format='"%(refname:short)"' refs/heads 2>/dev/null)"})
@@ -7742,8 +7761,8 @@ _git() {
'(: -)--man-path[print the manpath for the man pages for this version of Git and exit]' \
'(: -)--info-path[print the path where the info files are installed and exit]' \
'(: -)--html-path[display path to HTML documentation and exit]' \
- '(-p --paginate)'{-p,--paginate}'[pipe output into $PAGER]' \
- '--no-pager[do not pipe git output into a pager]' \
+ '(-p --paginate -P --no-pager)'{-p,--paginate}'[pipe output into a pager]' \
+ '(-p --paginate -P --no-pager)'{-P,--no-pager}"[don't pipe git output into a pager]" \
'--git-dir=-[path to repository]: :_directories' \
'--work-tree=-[path to working tree]: :_directories' \
'--namespace=-[set the Git namespace]: :_directories' \
diff --git a/Completion/Unix/Command/_lynx b/Completion/Unix/Command/_lynx
index 6c4d57f6f..d25b03975 100644
--- a/Completion/Unix/Command/_lynx
+++ b/Completion/Unix/Command/_lynx
@@ -1,7 +1,5 @@
#compdef lynx
-# Lynx Version 2.8.7rel.1 (05 Jul 2009)
-
local curcontext="$curcontext" state line ret=1
typeset -A opt_args
@@ -26,7 +24,9 @@ _arguments -C \
'-cmd_log=[log keystroke commands to the given file]:keystroke log:_files' \
'-cmd_script=[read keystroke commands from the given file (see -cmd_log)]:keystroke log:_files' \
'-color[forces color mode on, if available]' \
- '-connect_timeout=[set the N-second connection timeout (18000)]:connection timeout (seconds):' \
+ '-collapse_br_tags[toggle collapsing of BR tags (on)]' \
+ '-connect_timeout=[set the N-second connection timeout]:connection timeout (seconds) [18000]' \
+ '-convert_to=[convert input]:format:_mime_types' \
'-cookie_file=[specifies a file to use to read cookies]:cookie file:_files' \
'-cookie_save_file=[specifies a file to use to store cookies]:cookie file:_files' \
'-cookies[toggles handling of Set-Cookie headers (on)]' \
@@ -34,7 +34,8 @@ _arguments -C \
'-crawl[with -traversal, output each page to a file with -dump, format output as with -traversal, but to stdout]' \
'-curses_pads[uses curses pad feature to support left/right shifting (on)]' \
'-debug_partial[incremental display stages with MessageSecs delay (off)]' \
- '-delay=[set NNN-second delay at statusline message (0.000)]:delay (seconds):' \
+ '-default_colors[use terminal default foreground/background colors (on)]' \
+ '-delay=[set NNN-second delay at statusline message]:delay (seconds) [0.000]' \
"-display=[set the display variable for X exec'ed programs]:display:_x_display" \
'-display_charset=[charset for the terminal output]:character set:' \
"-dont_wrap_pre[inhibit wrapping of text in <pre> when -dump'ing and -crawl'ing, mark wrapped lines in interactive session (off)]" \
@@ -47,7 +48,7 @@ _arguments -C \
'-fileversions[include all versions of files in local VMS directory listings]' \
'-force_empty_hrefless_a[force HREF-less 'A' elements to be empty (close them as soon as they are seen) (off)]' \
'-force_html[forces the first document to be interpreted as HTML (off)]' \
- '-force_secure[toggles forms-based vs old-style options menu (on)]' \
+ '-force_secure[toggle forcing of the secure flag for SSL cookies (off)]' \
'-forms_options[toggles forms-based vs old-style options menu (on)]' \
'-from[toggle transmission of From headers (on)]' \
'-ftp[disable ftp access (off)]' \
@@ -57,11 +58,13 @@ _arguments -C \
'-hiddenlinks=[hidden links: options are merge, listonly, or ignore]:option:(merge listonly ignore)' \
"-historical[toggles use of '>' or '-->' as terminator for comments (off)]" \
'-homepage=[set homepage separate from start page]:URL:->html' \
+ '-html5_charsets[toggle use of HTML5 charset replacements]' \
'-image_links[toggles inclusion of links for all images (off)]' \
'-index=[set the default index file to URL]:URL:->html' \
'-ismap[toggles inclusion of ISMAP links when client-side MAPs are present (off)]' \
'-justify[do justification of text (off)]' \
'-link=[starting count for lnk#.dat files produced by -crawl (0)]:starting count:' \
+ '-list_inline[with -dump, show links inline with text]' \
'-listonly[with -dump, forces it to show only the list of links (off)]' \
'-localhost[disable URLs that point to remote hosts (off)]' \
'-locexec[enable local program execution from local files only (if lynx was compiled with local execution enabled)]' \
@@ -91,6 +94,7 @@ _arguments -C \
'-nostatus[disable the miscellaneous information messages (off)]' \
'-notitle[disable the title at the top of each page (off)]' \
'-nounderline[disable underline video-attribute]' \
+ "-nozap=[disable checks for the 'z' key]:duration:(all initially full)" \
'-number_fields[force numbering of links as well as form input fields (off)]' \
'-number_links[force numbering of links (off)]' \
'-partial[toggles display partial pages while downloading (on)]' \
@@ -105,7 +109,7 @@ _arguments -C \
'-pseudo_inlines[toggles pseudo-ALTs for inlines with no ALT string (on)]' \
'-raw[toggles default setting of 8-bit character translations or CJK mode for the startup character set (off)]' \
'-realm[restricts access to URLs in the starting realm (off)]' \
- '-read_timeout=[set the N-second read-timeout (18000)]:timeout (seconds):' \
+ '-read_timeout=[set the N-second read-timeout]:timeout (seconds) [18000]' \
'-reload[flushes the cache on a proxy server (only the first document affected) (off)]' \
'-restrictions=[use -restrictions to see list]:options:->restrictions' \
'-resubmit_posts[toggles forced resubmissions (no-cache) of forms with method POST when the documents they returned are sought with the PREV_DOC command or from the History List (off)]' \
@@ -113,6 +117,9 @@ _arguments -C \
'-scrollbar[toggles showing scrollbar (off)]' \
'-scrollbar_arrow[toggles showing arrows at ends of the scrollbar (on)]' \
'-selective[require .www_browsable files to browse directories]' \
+ '-session=[resume from specified file on startup and save session to it on exit]:session file:_files' \
+ '-sessionin=[resume session from specified file on startup]:session file:_files' \
+ '-sessionout=[save session to specified file on exit]:session file:_files' \
'-short_url[enables examination of beginning and end of long URL in status line (off)]' \
"-show_cfg[show 'LYNX.CFG' setting (off)]" \
'-show_cursor[toggles hiding of the cursor in the lower right corner (on)]' \
@@ -131,16 +138,18 @@ _arguments -C \
'-trace[turns on Lynx trace mode (off)]' \
'-trace_mask=[customize Lynx trace mode]:trace mask:(0 1 2 3 4 5 6 7)' \
'-traversal[traverse all http links derived from startfile]' \
+ '-trim_blank_lines[toggle trimming of leading/trailing/collapsed-br blank lines (on)]' \
'-trim_input_fields[trim input text/textarea fields in forms (off)]' \
'-underline_links[toggles use of underline/bold attribute for links (off)]' \
'-underscore[toggles use of _underline_ format in dumps (off)]' \
+ '-unique_urls[toggle use of unique-urls setting for -dump and -listonly options (off)]' \
'-use_mouse[turn on mouse support (off)]' \
'-useragent=[set alternate Lynx User-Agent header]:user-agent header:' \
'-validate[accept only http URLs (meant for validation) implies more restrictions than -anonymous, but goto is allowed for http and https (off)]' \
'-verbose[toggles [LINK\], [IMAGE\] and [INLINE\] comments with filenames of these images (on)]' \
'(- *)-version[print Lynx version information]' \
'-vikeys[enable vi-like key movement (off)]' \
- '-width=[screen width for formatting of dumps (default is 80)]:number of columns:' \
+ '-width=[specify screen width for formatting of dumps]:number of columns [80]' \
'-with_backspaces[emit backspaces in output if -dumping or -crawling]' \
'-xhtml-parsing[enable XHTML 1.0 parsing (off)]' \
':URL:->html' && ret=0
@@ -148,12 +157,12 @@ _arguments -C \
case "$state" in
restrictions)
_values -s ',' 'restriction' \
- \? all bookmark bookmark_exec change_exec_perms chdir default \
- dired_support disk_save dotfiles download editor exec exec_frozen \
+ \? all bookmark bookmark_exec change_exec_perms chdir compileopts_info \
+ default dired_support disk_save dotfiles download editor exec exec_frozen \
externals file_url goto inside_ftp inside_news inside_rlogin \
- inside_telnet jump lynx_cgi mail multibook news_post options_save \
- outside_ftp outside_news outside_rlogin outside_telnet print shell \
- suspend telnet_port useragent && return
+ inside_telnet jump lynxcfg_info lynxcfg_xinfo lynxcgi mail multibook \
+ news_post options_save outside_ftp outside_news outside_rlogin \
+ outside_telnet print shell suspend telnet_port useragent && return
;;
html)
_alternative 'files:file:_files -g "*.x#html#(-.)"' 'urls:URL:_urls' && return
diff --git a/Completion/Unix/Command/_mpc b/Completion/Unix/Command/_mpc
index 45d93550d..4f200c69e 100644
--- a/Completion/Unix/Command/_mpc
+++ b/Completion/Unix/Command/_mpc
@@ -37,6 +37,7 @@ _mpc_command() {
disable:"disable an output"
enable:"enable an output"
toggleoutput:"toggle an output"
+ outputset:"set output attributes"
idle:"wait until an event occurs"
idleloop:"loop waiting for events"
insert:"insert a song after the currently playing song in the playlist"
@@ -73,6 +74,7 @@ _mpc_command() {
stop:"stop the currently playing playlists"
toggle:"toggles Play/Pause, plays if stopped"
update:"scan music directory for updates"
+ rescan:"rescan music directory (including unchanged files)"
version:"report version of MPD"
volume:"set volume"
status:"display MPD status"
@@ -222,6 +224,16 @@ _mpc_toggleoutput() {
_mpc_helper_outputs
}
+_mpc_outputset() {
+ if (( CURRENT == 2 )); then
+ _mpc_helper_outputs
+ else
+ _values -w -S = attribute \
+ 'dop:setting:(1 0)' \
+ 'allowed_formats:formats'
+ fi
+}
+
_mpc_move() {
if (( $#words <= 3 )); then
_mpc_helper_songnumbers
@@ -318,6 +330,10 @@ _mpc_update() {
_mpc_helper_files
}
+_mpc_rescan() {
+ _mpc_helper_files
+}
+
if [[ $service = *MPD_HOST* ]]; then
_hosts
return
@@ -339,7 +355,7 @@ if [[ $state = formats ]]; then
compset -P '([^%]|%[^%]#%)#'
_wanted metadata expl 'metadata delimiter' compadd -p % -S % \
artist album albumartist comment composer date disc genre performer title \
- track time file position mtime mdate && ret=0
+ track time file position id prio mtime mdate && ret=0
fi
return ret
diff --git a/Completion/Unix/Command/_readelf b/Completion/Unix/Command/_readelf
index 282431462..ce78baf27 100644
--- a/Completion/Unix/Command/_readelf
+++ b/Completion/Unix/Command/_readelf
@@ -7,6 +7,7 @@ _pick_variant -r variant elftoolchain=elftoolchain elfutils=elfutils binutils --
args=(
'(-a --all)'{-a,--all}'[show all tables]'
+ '(-g --section-groups)'{-g,--section-groups}'[show section groups]'
'(-h --file-header)'{-h,--file-header}'[show file header]'
'(-l --program-headers --segments)'{-l,--program-headers,--segments}'[show program headers]'
'(-S --section-headers --sections)'{-S,--section-headers,--sections}'[show sections header]'
@@ -31,7 +32,6 @@ args=(
case $variant in
elftoolchain|binutils)
args+=(
- '(-g --section-groups)'{-g,--section-groups}'[show section groups]'
'(-t --section-details)'{-t,--section-details}'[show section details]'
'(-e --headers)'{-e,--headers}'[show file, program and sections headers]'
'(-s --syms --symbols)'{-s,--syms,--symbols}'[show symbol table]'
@@ -49,6 +49,7 @@ case $variant in
;;
elfutils)
args+=(
+ '--dwarf-skeleton=[find skeleton compile units (with -w)]:file:_files'
'--elf-section[used specified section as ELF input data]::section'
'(-e --exception)'{-e,--exception}'[show sections for exception handling]'
'(-N --numeric-addresses)'{-N,--numeric-addresses}"[don't find symbol names for addresses in DWARF data]"
diff --git a/Completion/Unix/Command/_sqlite b/Completion/Unix/Command/_sqlite
index 58f7a9116..4604fb40c 100644
--- a/Completion/Unix/Command/_sqlite
+++ b/Completion/Unix/Command/_sqlite
@@ -1,6 +1,6 @@
#compdef sqlite sqlite3
-local ret opt display_opt sqlite3
+local opt display_opt sqlite3 ign
local -a options output_modes exclusive dashes
[[ $service = sqlite3 ]] && sqlite3=true || unset sqlite3
@@ -31,16 +31,18 @@ for display_opt in $output_modes ; do
options+=( "($exclusive)"$^dashes"-${opt}[set output mode to $display_opt]" )
done
+(( $#words == 2 )) || ign='!'
options+=(
$^dashes'-separator[set output field separator]:output field separator [|]'
$^dashes'-nullvalue[set text string for null values]:string'
- '(- :)'$^dashes'-version[show SQLite version]'
- '(- :)'$^dashes'-help[show help]'
+ "$ign(- :)"$^dashes'-version[show SQLite version]'
+ "$ign(- :)"$^dashes'-help[show help]'
'1:SQLite database file:_files'
- '(- :)2:SQL to run'
+ '(- :)2: :_guard "^-*" "SQL to run"'
)
(( $+sqlite3 )) && options+=(
+ $^dashes'-A+[run .archive with arguments and exit]'
$^dashes'-append[append the database to the end of the file]'
$^dashes'-bail[stop after hitting an error]'
$^dashes'-cmd[run specified command before reading stdin]:sqlite meta-command'
@@ -53,6 +55,23 @@ options+=(
$^dashes'-readonly[open the database read-only]'
$^dashes'-stats[print memory stats before each finalize]'
$^dashes'-vfs[use specified default VFS]:vfs:(unix-dotfile unix-excl unix-none unix-namedsem)'
+ $^dashes'-zip[open the file as a ZIP Archive]'
)
+if [[ -n $words[(r)-A*] ]]; then
+ options=( -s -w : '(-A --A)'${^dashes}-A "(-f --file -a --append)"${(M)options:#1:*}
+ '(-v --verbose)'{-v,--verbose}'[print each filename as it is processed]'
+ '(1 -a --append -f --file)'{-f+,--file=}'[specify archive file]:archive file:_files'
+ '(1 -a --append -f --file)'{-a,--append=}'[operate on specified file opened using the apndvfs VFS]:archive file:_files'
+ '(-C --directory)'{-C+,--directory=}'[change to specified directory to read/extract files]:directory:_directories'
+ '(-n --dryrun)'{-n,--dryrun}'[show the SQL that would have occurred]'
+ '*:file:_files'
+ + '(commands)' \
+ '(-c --create)'{-c,--create}'[create a new archive]'
+ '(-u --update)'{-u,--update}'[update or add files to an existing archive]'
+ '(-t --list)'{-t,--list}'[list contents of archive]'
+ '(-x --extract)'{-x,--extract}'[extract files from archive]'
+ )
+fi
+
_arguments $options
diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion
index b7e10c06b..e16be7e59 100644
--- a/Completion/Unix/Command/_subversion
+++ b/Completion/Unix/Command/_subversion
@@ -26,7 +26,7 @@ _svn () {
_arguments -C -A "-*" \
'(-)--help[print help information]' \
- '(- *)--version[print client version information]' \
+ '(*)--version[print client version information]' \
'1: :->cmds' \
'*:: :->args' && ret=0
@@ -169,6 +169,9 @@ _svn () {
'*:file:_files -g "(.svn|*)(/e:_svn_deletedfiles:,e:_svn_status:)"'
)
;;
+ (unshelve)
+ args+=( '1:shelf name:compadd - ${${(f)"$(_call_program shelves svn unshelve -q --list)"}%% *}' )
+ ;;
(*)
case $usage in
*(SRC|DST|TARGET|URL*PATH)*)
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index f7b1bbb20..ac459f8ab 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -234,6 +234,7 @@ _tmux-choose-client() {
_tmux-choose-tree() {
[[ -n ${tmux_describe} ]] && print "put a window into tree choice mode" && return
_arguments -s \
+ '-G[include all sessions in any session groups in the tree rather than only the first]' \
'-N[start without the preview]' \
'-F+[specify format for each list item]:format:__tmux-formats' \
'-f+[filter items]:filter format:__tmux-formats' \
@@ -561,6 +562,8 @@ _tmux-paste-buffer() {
_tmux-pipe-pane() {
[[ -n ${tmux_describe} ]] && print "pipe output from a pane to a shell command" && return
_arguments -s -A "-*" -S \
+ '-I[write stdout from command to the pane as if it were typed]' \
+ '-O[pipe output from the pane to the command (default unless -I used)]' \
'-o[only open a pipe if none is currently opened]' \
'-t+[specify target pane]:pane:__tmux-panes' \
':shell command:_cmdstring'
@@ -657,12 +660,13 @@ _tmux-save-buffer() {
}
_tmux-select-layout() {
- [[ -n ${tmux_describe} ]] && print "choose a layout for a window" && return
+ [[ -n ${tmux_describe} ]] && print "choose a layout for a pane" && return
_arguments -s -A "-*" -S \
+ '-E[spread the current pane and any panes next to it out evenly]' \
'-n[behave like next-layout]' \
'-o[revert to previous layout]' \
'-p[behave like previous-layout]' \
- '-t+[specify a target window]:target window:__tmux-windows' \
+ '-t+[specify a target pane]:target pane:__tmux-panes' \
':layout:(even-horizontal even-vertical main-horizontal main-vertical tiled)'
}
diff --git a/Completion/Unix/Command/_user_admin b/Completion/Unix/Command/_user_admin
index 7eeec7e9b..fe28c13f5 100644
--- a/Completion/Unix/Command/_user_admin
+++ b/Completion/Unix/Command/_user_admin
@@ -150,6 +150,7 @@ case ${service%???}:${(M)service%???}:$OSTYPE in
*:*:linux*)
args+=(
'(-R --root)'{-R,--root=}'[specify directory to chroot into]:directory:_directories'
+ '(-P --prefix)'{-P,--prefix=}"[specify root directory to apply changes in but don't chroot]:directory:_directories"
'(-D -U -L -p --password)'{-p+,--password=}'[specify encrypted password]:encrypted password'
'(-)'{-h,--help}'[display help information]'
)
diff --git a/Completion/Unix/Command/_wget b/Completion/Unix/Command/_wget
index 1a7e2d0a3..2a4e722d8 100644
--- a/Completion/Unix/Command/_wget
+++ b/Completion/Unix/Command/_wget
@@ -22,6 +22,7 @@ _arguments -C -s \
'(--config)--no-config' '--rejected-log=:file:_files' \
'(--tries -t)'{--tries=,-t+}'[set number of retries]:number of retries' \
'--retry-connrefused[retry even if connection is refused]' \
+ '--retry-on-http-error=[specify list of HTTP errors to retry]:http error' \
'(--output-document -O)'{--output-document=,-O+}'[specify file to write documents to]:output file:_files' \
'(--continue -c)'{--continue,-c}'[continue getting an existing file]' \
'--start-pos=:offset' '--show-progress' \
@@ -38,8 +39,7 @@ _arguments -C -s \
'(--wait -w)'{--wait=,-w+}'[specify wait between retrievals]:time (seconds)' \
'(--random-wait)--waitretry=:time (seconds)' \
'(--waitretry)--random-wait[random wait time between retrievals]' \
- '(--proxy -Y --no-proxy)'{--proxy=,-Y+}'[explicitly turn on proxy]' \
- '(--proxy -Y --no-proxy)--no-proxy[explicitly turn off proxy]' \
+ '--no-proxy[explicitly turn off proxy]' \
'(--quota -Q)'{--quota=,-Q+}'[set retrieval quota]:number' \
'--bind-address=[specify address to bind to (hostname or IP)]:bind address:_bind_addresses' \
'--limit-rate=[specify limit to download rate]:download rate limit' \
@@ -48,7 +48,7 @@ _arguments -C -s \
'--ignore-case[ignore case when matching files/directories]' \
'(-4 --inet4-only -6 --inet6-only)'{-4,--inet4-only}'[connect only to IPv4 addresses]' \
'(-4 --inet4-only -6 --inet6-only)'{-6,--inet6-only}'[connect only to IPv6 addresses]' \
- '--prefer-family[connect first to addresses of specified family]:address family:(IPv6 IPv4 none)' \
+ '--prefer-family=[connect first to addresses of specified family]:address family:(IPv6 IPv4 none)' \
'(--http-user --ftp-user)--user[set both ftp and http user]:user' \
'(--http-password --ftp-password)--password[set both ftp and http password]:password' \
'(--password --http-password --ftp-password)--ask-password:[prompt for passwords]' \
@@ -67,7 +67,7 @@ _arguments -C -s \
'(--user)--http-user=:user' \
'(--password --ask-password)--http-password=:password' \
'--no-cache[disallow server-cached data]' \
- '--default-page=[specify default page name, normally index.html]' \
+ '--default-page=[specify default page name, normally index.html]:default page [index.html]' \
'(--adjust-extension -E)'{--adjust-extension,-E}'[save all HTML/CSS documents with proper extensions]' \
"--ignore-length[ignore \`Content-Length' header field]" \
'*--header=[send a custom HTTP header]:header:->header' \
@@ -93,7 +93,7 @@ _arguments -C -s \
"--auth-no-challenge[send basic HTTP authentication without first waiting for server's challenge]" \
'--secure-protocol=[choose secure protocol]:protocol:(SSLv2 SSLv3 TLSv1 TLSv1_1 TLSv1_2 PFS)' \
--https-only \
- "--no-check-certificate=[don't check the server certificate]" \
+ "--no-check-certificate[don't check the server certificate]" \
'--certificate=[specify client certificate]:client certificate file:_files' \
'--certificate-type=[specify client certificate type]:certificate type:(PEM DER)' \
'--private-key=[specify private key file]:key file:_files' \
@@ -104,6 +104,7 @@ _arguments -C -s \
'--pinnedpubkey=:file:_files' \
'--random-file[specify file with random data for seeding generator]:file:_files' \
'--egd-file=[specify filename of EGD socket]:file:_files' \
+ '--ciphers=[set the priority string (GnuTLS) or cipher list string (OpenSSL) directly]:string' \
'--no-hsts[disable HSTS]' \
'--hsts-file[specify path of HSTS database]:file:_files' \
'(--user)--ftp-user=:user' \
diff --git a/Completion/Unix/Command/_xxd b/Completion/Unix/Command/_xxd
index 1b1613a64..0034be519 100644
--- a/Completion/Unix/Command/_xxd
+++ b/Completion/Unix/Command/_xxd
@@ -26,7 +26,7 @@ arguments=(
'( -E -EBCDIC -i -include -p -postscript -plain -ps -r -revert )'{-E,-EBCDIC}'[print human-readable part in EBCDIC rather than ASCII]'
'(-i -include -p -postscript -plain -ps -r -revert)'{-e,-endian}'[little-endian dump]'
'(-b -bits -E -EBCDIC -i -include -p -postscript -plain -ps -r -revert )'{-i,-include}'[output in C include file style]'
- '(-b -bits -E -EBCDIC -i -include -p -postscript -plain -ps )'{-p,-postscript,-plain,-ps}'[read or write a plain hexdump (no line numbers or ASCII rendering)]'
+ '(-b -bits -E -EBCDIC -i -include -p -postscript -plain -ps -C -capitalize )'{-p,-postscript,-plain,-ps}'[read or write a plain hexdump (no line numbers or ASCII rendering)]'
'(-b -bits -E -EBCDIC -i -include -r -revert -u -uppercase)'{-r,-revert}'[reverse mode\: read a hex dump and output binary data]'
'(-b -bits -r -revert -u -uppercase)'{-u,-uppercase}'[output upper-case hex digits]'
@@ -34,7 +34,7 @@ arguments=(
'(- :)'{-h,-help}'[display usage message]'
'(- :)'{-v,-version}'[show program version]'
'*'{-a,-autoskip}"[a single '*' replaces runs of NUL (toggleable)]"
-
+ '(-C -capitalize)'{-C,-capitalize}'[capitalize variable names in C include file style]'
{-c+,-cols}'[specify number of octets per line]: :_guard "[0-9a-fA-Fx]#" "number of octets per line"'
{-g+,-groupsize}'[specify the number of octets per group]: :_guard "[0-9]#" "number of octets per group"'
{-l+,-len}'[specify number of octets to output]: :_guard "[0-9]#" "number of octets to output"'
diff --git a/Completion/X/Command/_qiv b/Completion/X/Command/_qiv
index d10407584..35ceec09a 100644
--- a/Completion/X/Command/_qiv
+++ b/Completion/X/Command/_qiv
@@ -5,7 +5,9 @@ _arguments -s \
'(- *)'{-v,--version}'[display version information]' \
'--display:display:_x_display' \
\*{-F,--file}'[read file names from file]:file:_files' \
+ '(-B --browse)'{-B,--browse}'[scan directory of file for browsing]' \
'(-e --center)'{-e,--center}'[disable window centering]' \
+ '(-C --cycle)'{-C,--cycle}"[don't cycle after last image]" \
'(-w --fixed_width -W --fixed_zoom)'{-w,--fixed_width}'[use window with specified width]:width' \
'(-w --fixed_width -W --fixed_zoom)'{-W,--fixed_zoom}'[use window with specified zoom factor]:zoom (percentage)' \
'(-x -y -z --root --root_t --root_s -f --file *)'{-x,--root}'[use image as the current desktop background, centered]:image file:_files' \
@@ -13,6 +15,7 @@ _arguments -s \
'(-x -y -z --root --root_t --root_s -f --file *)'{-z,--root_s}'[use image as the current desktop background, stretched]:image file:_files' \
'(-m --maxpect)'{-m,--maxpect}'[expand image to fit screen size]' \
'(-t --scale_down)'{-t,--scale_down}'[shrink images to fit screen size]' \
+ "--trashbin[move files to user's trash bin instead of .qiv-trash when deleting]" \
'(-b --brightness)'{-b,--brightness}'[set brightness]:brightness (-32..32)' \
'(-c --contrast)'{-c,--contrast}'[set contrast]:contrast (-32..32)' \
'(-g --gamma)'{-g,--gamma}'[set gamma]:gamma (-32..32)' \
@@ -21,7 +24,7 @@ _arguments -s \
'(-i --no_statusbar -I --statusbar)'{-I,--statusbar}'[enable statusbar]' \
'(-p --transparency)'{-p,--transparency}'[enable transparency]' \
'(-a --do_grab)'{-a,--do_grab}'[grab the pointer in windowed mode]' \
- '(-G --disable_grab)'{-G,--disable_grab}'[disable pointer grabbing]' \
+ '(-G --disable_grab)'{-G,--disable_grab}'[disable pointer grabbing in fullscreen mode]' \
'(-o --bg_color)'{-o,--bg_color}'[set root background color]:color:_x_color' \
'(-s --slide)'{-s,--slide}'[start slideshow immediately]' \
'(-r --random)'{-r,--random}'[shuffle images for slideshow]' \
@@ -31,6 +34,17 @@ _arguments -s \
'(-f --fullscreen)'{-f,--fullscreen}'[use fullscreen window on startup]' \
'(-P --ignore_path_sort)'{-P,--ignore_path_sort}'[sort images by just the filename]' \
'(-M --merged_case_sort)'{-M,--merged_case_sort}'[sort images case-insensitively]' \
- '(-N --numeric_sort)'{-N,--numeric_sort}'[numeric image sort]' \
+ '(-K --mtime_sort)'{-K,--mtime_sort}'[sort images by their modification time]' \
+ '(-N --numeric_sort -K --mtime_sort)'{-N,--numeric_sort}'[numeric image sort]' \
+ '(-D --no_sort -N --numeric_sort -K --mtime_sort -M --merged_case_sort -P --ignore_path_sort)'{-D,--no_sort}"[don't apply any sorting to the images]" \
'(-T --watch)'{-T,--watch}'[reload the image if it changes]' \
- '*:image file:_files -g "*.(#i)(bmp|eim|gif|jp([eg]|eg)|pcx|png|p[pngb]m|tif(|f)|tga|x[pb]m)(-.)"'
+ '(-u --recursivedir)'{-u,--recursivedir}'[recursively include all files]' \
+ '(-L --followlinks)'{-L,--followlinks}'[follow symlinks to directories]' \
+ '(-A --select_dir)'{-A,--select_dir}'[store selected files in specified directory]:directory [.qiv-select]:_directories' \
+ '(-l --autorotate)'{-l,--autorotate}"[don't autorotate JPEGs according to EXIF rotation tag]" \
+ '(-q --rotate)'{-q,--rotate}'[rotate image]:angle:((1\:90 2\:180 3\:270))' \
+ '(-X --xineramascreen)'{-X,--xineramascreen}'[specify preferred screen]:screen' \
+ '(-Y --source_profile)'{-Y,--source_profile}'[specify colour profile file as source profile]:colour profile file:_files' \
+ '(-Z --display_profile)'{-Z,--display_profile}'[specify colour profile file as display profile]:colour profile file:_files' \
+ '--vikeys[enable movement with h/j/k/l]' \
+ '*:image file:_files -g "*.(#i)(bmp|eim|gif|ico|jp([eg]|eg)|pcx|png|p[pngb]m|pjpeg|svg|tif(|f)|wmf|x[pb]m)(-.)"'
diff --git a/Completion/Zsh/Command/_which b/Completion/Zsh/Command/_which
index c43704ae8..9b789c86b 100644
--- a/Completion/Zsh/Command/_which
+++ b/Completion/Zsh/Command/_which
@@ -1,6 +1,6 @@
#compdef which whence where type
-local farg aarg cargs args state line curcontext="$curcontext" ret=1
+local farg aarg xarg cargs args state line curcontext="$curcontext" ret=1
cargs=( \
'(-v -c)-w[print command type]' \
@@ -11,6 +11,7 @@ cargs=( \
'*:commands:->command' )
farg='-f[output contents of functions]'
aarg='-a[print all occurrences in path]'
+xarg='-x+[specify spaces to use for indentation in function expansion]:spaces'
case ${service} in
whence)
@@ -19,8 +20,8 @@ case ${service} in
'(-v -w)-c[csh-like output]' \
"${cargs[@]}" "$farg" "$aarg" && ret=0
;;
- where) _arguments -C -s -A "-*" -S "${cargs[@]}" && ret=0;;
- which) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" && ret=0;;
+ where) _arguments -C -s -A "-*" -S "${cargs[@]}" "$xarg" && ret=0;;
+ which) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" "$xarg" && ret=0;;
type) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" "$farg" && ret=0;;
esac
diff --git a/Completion/Zsh/Command/_zed b/Completion/Zsh/Command/_zed
index 211dae7df..6b68fadf0 100644
--- a/Completion/Zsh/Command/_zed
+++ b/Completion/Zsh/Command/_zed
@@ -5,5 +5,6 @@ case $service in
(zed) _arguments -S : \
'(- 2):file:_files' \
'(1):shell function:_functions' \
+ '(1)-x+[specify spaces to use for indentation in function expansion]:spaces' \
'(1)-f[edit function]';;
esac
Messages sorted by:
Reverse Date,
Date,
Thread,
Author