Merge pull request #1160 from zsh-users/update-2025-10
Update completions
This commit is contained in:
commit
41a21a4d57
|
|
@ -25,7 +25,7 @@
|
|||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for emacs 29. (https://www.gnu.org/software/emacs/)
|
||||
# Completion script for emacs 31. (https://www.gnu.org/software/emacs/)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
|
|
@ -59,12 +59,14 @@ _arguments \
|
|||
'--init-directory=[use DIR when looking for the Emacs init files]: :_files -/' \
|
||||
'(-Q --quick)'{-Q,--quick}'[equivalent to -q --no-site-file --no-site-lisp --no-splash --no-x-resources]' \
|
||||
'--script[run FILE as an Emacs Lisp script]: :_files' \
|
||||
'-x[same as -Q --script]' \
|
||||
'(-t --terminal)'{-t,--terminal}'[use DEVICE for terminal IO]: :_files' \
|
||||
'(-u --user)'{-u,--user}'[load ~USER/.emacs instead of your own]' \
|
||||
\*{-L,--directory}'[prepend DIR to load-path(with :DIR, append DIR)]: :_files -/' \
|
||||
{--eval,--execute}'[evaluate Emacs Lisp expression EXPR]:expr' \
|
||||
\*{--file,--find-file,--visit}'[visit FILE]: :_files' \
|
||||
\*{-f,--funcall}'[call Emacs Lisp function FUNC with no arguments]:func' \
|
||||
'--insert[insert contents of FILE into current buffer]:file:_files' \
|
||||
'--kill[exit without asking for confirmation]' \
|
||||
\*{-l,--load}'[load Emacs Lisp FILE using the load function]: :_files' \
|
||||
'(-bg --background-color)'{-bg,--background-color}'[window background color]:color' \
|
||||
|
|
@ -95,7 +97,6 @@ _arguments \
|
|||
'(- *)--version[output version information and exit]' \
|
||||
'*: :_files'
|
||||
|
||||
|
||||
# Local Variables:
|
||||
# mode: Shell-Script
|
||||
# sh-indentation: 2
|
||||
|
|
|
|||
|
|
@ -37,15 +37,22 @@
|
|||
# * Timofey Titovets <nefelim4ag@gmail.com>
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
_exportfs() {
|
||||
_values -w 'option' \
|
||||
'(-i)-a[Export or unexport all directories]' \
|
||||
'(-a -r -u)-i[Ignore the /etc/exports file and files under /etc/exports.d directory]' \
|
||||
'(-i)-r[Reexport all directories]' \
|
||||
'(-i)-u[Unexport one or more directories]' \
|
||||
'-f[Flush everything out of export table]' \
|
||||
'-o[option1,option2.. Specify a list of export options]' \
|
||||
'-s[Display the current export list suitable for /etc/exports]' \
|
||||
'-v[Be verbose]'
|
||||
}
|
||||
_exportfs "$@"
|
||||
|
||||
_arguments \
|
||||
'(-d --debug)'{-d,--debug}'[Turn on debugging]:kind:(all auth call general parse)' \
|
||||
'(-i)-a[Export or unexport all directories]' \
|
||||
'(-a -r -u)-i[Ignore the /etc/exports file and files under /etc/exports.d directory]' \
|
||||
'-o[Specify a list of export options in the same manner as in exports]:option' \
|
||||
'(-i)-r[Reexport all directories]' \
|
||||
'(-i)-u[Unexport one or more directories]' \
|
||||
"-f[Flush everything out of kernel's export table]" \
|
||||
'-v[Be verbose]' \
|
||||
'-s[Display the current export list suitable for /etc/exports]'
|
||||
|
||||
# Local Variables:
|
||||
# mode: Shell-Script
|
||||
# sh-indentation: 2
|
||||
# indent-tabs-mode: nil
|
||||
# sh-basic-offset: 2
|
||||
# End:
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
|
|
|
|||
12
src/_glances
12
src/_glances
|
|
@ -28,7 +28,7 @@
|
|||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for glances (https://nicolargo.github.io/glances/).
|
||||
# Completion script for glances 4.3.3 (https://nicolargo.github.io/glances/).
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
|
|
@ -42,8 +42,10 @@
|
|||
_glances() {
|
||||
_arguments \
|
||||
'(- *)'{-h,--help}'[show this help message and exit]' \
|
||||
'--print-completion[print shell completion script]:shell:(bash zsh tcsh)' \
|
||||
'(- *)'{-V,--version}"[show program's version number and exit]" \
|
||||
'(-C,--config)'{-C,--config}'[path to the configuration file]: :_files' \
|
||||
'(-d --debug)'{-d,--debug}'[enable debug mode]' \
|
||||
'(-C --config)'{-C,--config}'[path to the configuration file]: :_files' \
|
||||
'(--modules-list --module-list)'{--modules-list,--module-list}'[display modules list and exit]' \
|
||||
'(--disable-plugin --disable-plugins)'{--disable-plugin,--disable-plugins}'[disable plugin(comma separated list or all)]:plugin' \
|
||||
'(--enable-plugin --enable-plugins)'{--enable-plugin,--enable-plugins}'[enable plugin(comma separated list)]:plugin' \
|
||||
|
|
@ -62,7 +64,8 @@ _glances() {
|
|||
'--disable-bg[disable background colors in the terminal]' \
|
||||
'--enable-irq[enable IRQ mode]' \
|
||||
'--enable-process-extended[enable extended stats on top process]' \
|
||||
'(--separator --enable-separator)'{--separator,--enable-separator}'[enable separator in the UI]' \
|
||||
'--disable-separator[disable separator in the UI]' \
|
||||
'--disable-cursor[disable cursor in the UI]' \
|
||||
'--sort-process[sort processes]: :(cpu_percent memory_percent username cpu_times io_counters name)' \
|
||||
'(--programs --program)'{--programs,--program}'[Accumulate processes by program]' \
|
||||
'--export[enable export module]:module' \
|
||||
|
|
@ -70,11 +73,12 @@ _glances() {
|
|||
'--export-csv-overwrite[overwrite existing CSV file]' \
|
||||
'--export-json-file[file path for JSON exporter]: :_files' \
|
||||
'--export-graph-path[Folder for Graph exporter]: :_files -/' \
|
||||
'--export-process-filter[set the export process filter]:filters' \
|
||||
'(-c --client)'{-c,--client}'[connect to a Glances server]:host:_hosts' \
|
||||
'(-s --server)'{-s,--server}'[run Glances in server mode]' \
|
||||
'--browser[start the client browser]' \
|
||||
'--disable-autodiscover[disable autodiscover feature]' \
|
||||
'(-p --port)'{-p,--port}'[define the client/server TCP port]' \
|
||||
'(-p --port)'{-p,--port}'[define the client/server TCP port]:port' \
|
||||
'(-B --bind)'{-B,--bind}'[bind server to the given IPv4/IPv6 address or hostname]:host:_hosts' \
|
||||
'--username[define a client/server username]' \
|
||||
'--password[define a client/server password]' \
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ _arguments -s -C \
|
|||
'(-n --noparity)'{-n,--noparity}'[Set the parity of the serial line to none]' \
|
||||
'(-o --oddparity)'{-o,--oddparity}'[Set the parity of the serial line to odd]' \
|
||||
'(-s --speed)'{-s,--speed}'[Set the speed(the baud rate) of the serial line]:value' \
|
||||
'(-C --intro-command)'{-C,--intro-command}'[An intro command before the invocation of ldattach]:command' \
|
||||
'(-c --intro-command)'{-c,--intro-command}'[An intro command before the invocation of ldattach]:command' \
|
||||
'(-p --pause)'{-p,--pause}'[Sleep for given seconds before the invocation of ldattach]:value' \
|
||||
'(- *)'{-h,--help}'[Display help text and exit]'\
|
||||
'(- *)'{-V,--version}'[Print version and exit]' \
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ _protoc() {
|
|||
'--js_out=[Generate JavaScript source]:out_dir:_files -/' \
|
||||
'--objc_out=[Generate Objective C header and source]:out_dir:_files -/' \
|
||||
'--php_out=[Generate PHP source file]:out_dir:_files -/' \
|
||||
'--pyi_out=[Generate python pyi stub]:out_dir:_files -/' \
|
||||
'--python_out=[Generate Python source file]:out_dir:_files -/' \
|
||||
'--ruby_out=[Generate Ruby source file]:out_dir:_files -/' \
|
||||
'--rust_out=[Generate Rust sources]:out_dir:_files -/' \
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for ts-node v10.9.1. (https://github.com/TypeStrong/ts-node)
|
||||
# Completion script for ts-node v10.9.2. (https://github.com/TypeStrong/ts-node)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
|
|
@ -41,6 +41,7 @@ _arguments \
|
|||
'(-e --eval)'{-e,--eval}'[Evaluate code]:code' \
|
||||
'(-p --print)'{-p,--print}'[Print result of "--eval"]' \
|
||||
'*'{-r,--require}'[Require a node module before execution]:path:_files' \
|
||||
'(-i --interactive)'{-i,--interactive}'[Open the REPL even if stdin does not appear to be a terminal]' \
|
||||
'--esm[Bootstrap with the ESM loader, enabling full ESM support]' \
|
||||
'--swc[Use the faster swc transpiler]' \
|
||||
'(- *)--showConfig[Print resolved configuration and exit]' \
|
||||
|
|
|
|||
Loading…
Reference in New Issue