Compare commits

..

1 Commits

Author SHA1 Message Date
Alexander F. Rødseth 64e9230d8f
Merge 4f793a0031 into 173a14c436 2025-09-23 00:24:23 -04:00
8 changed files with 30 additions and 107 deletions

View File

@ -1,59 +0,0 @@
#compdef distro-info ubuntu-distro-info debian-distro-info
#
# ------------------------------------------------------------------------------
# Copyright (c) 2025 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion for distro-info
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Shohei YOSHIDA (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
_arguments \
'(- *)'{-h,--help}'[display help message and exit]' \
'--date=[data for calculating the version]:date' \
'(-a --all)'{-a,--all}'[list all known versions]' \
'(-y --days)'{-y,--days=}'[display number of days until specified version reaches the specified milestone]:milestone:(created release eol eol-server)' \
'(-d --devel)'{-d,--devel}'[latest development version]' \
'--series=[series to calculate the version for]:series' \
'(-s --stable)'{-s,--stable}'[latest stable version]' \
'--supported[list of all supported version, including development releases]' \
'--unsupported[list of all unsupported stable versions]' \
'(-c --codename)'{-c,--codename}'[print the codename(default)]' \
'(-r --release)'{-r,--release}'[print the release version]' \
'(-f --fullname)'{-f,--fullname}'[print the full name]'
# 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

View File

@ -25,7 +25,7 @@
# Description # Description
# ----------- # -----------
# #
# Completion script for emacs 31. (https://www.gnu.org/software/emacs/) # Completion script for emacs 29. (https://www.gnu.org/software/emacs/)
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Authors # Authors
@ -59,14 +59,12 @@ _arguments \
'--init-directory=[use DIR when looking for the Emacs init files]: :_files -/' \ '--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]' \ '(-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' \ '--script[run FILE as an Emacs Lisp script]: :_files' \
'-x[same as -Q --script]' \
'(-t --terminal)'{-t,--terminal}'[use DEVICE for terminal IO]: :_files' \ '(-t --terminal)'{-t,--terminal}'[use DEVICE for terminal IO]: :_files' \
'(-u --user)'{-u,--user}'[load ~USER/.emacs instead of your own]' \ '(-u --user)'{-u,--user}'[load ~USER/.emacs instead of your own]' \
\*{-L,--directory}'[prepend DIR to load-path(with :DIR, append DIR)]: :_files -/' \ \*{-L,--directory}'[prepend DIR to load-path(with :DIR, append DIR)]: :_files -/' \
{--eval,--execute}'[evaluate Emacs Lisp expression EXPR]:expr' \ {--eval,--execute}'[evaluate Emacs Lisp expression EXPR]:expr' \
\*{--file,--find-file,--visit}'[visit FILE]: :_files' \ \*{--file,--find-file,--visit}'[visit FILE]: :_files' \
\*{-f,--funcall}'[call Emacs Lisp function FUNC with no arguments]:func' \ \*{-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]' \ '--kill[exit without asking for confirmation]' \
\*{-l,--load}'[load Emacs Lisp FILE using the load function]: :_files' \ \*{-l,--load}'[load Emacs Lisp FILE using the load function]: :_files' \
'(-bg --background-color)'{-bg,--background-color}'[window background color]:color' \ '(-bg --background-color)'{-bg,--background-color}'[window background color]:color' \
@ -97,6 +95,7 @@ _arguments \
'(- *)--version[output version information and exit]' \ '(- *)--version[output version information and exit]' \
'*: :_files' '*: :_files'
# Local Variables: # Local Variables:
# mode: Shell-Script # mode: Shell-Script
# sh-indentation: 2 # sh-indentation: 2

View File

@ -37,22 +37,15 @@
# * Timofey Titovets <nefelim4ag@gmail.com> # * Timofey Titovets <nefelim4ag@gmail.com>
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
_exportfs() {
_arguments \ _values -w 'option' \
'(-d --debug)'{-d,--debug}'[Turn on debugging]:kind:(all auth call general parse)' \ '(-i)-a[Export or unexport all directories]' \
'(-i)-a[Export or unexport all directories]' \ '(-a -r -u)-i[Ignore the /etc/exports file and files under /etc/exports.d directory]' \
'(-a -r -u)-i[Ignore the /etc/exports file and files under /etc/exports.d directory]' \ '(-i)-r[Reexport all directories]' \
'-o[Specify a list of export options in the same manner as in exports]:option' \ '(-i)-u[Unexport one or more directories]' \
'(-i)-r[Reexport all directories]' \ '-f[Flush everything out of export table]' \
'(-i)-u[Unexport one or more directories]' \ '-o[option1,option2.. Specify a list of export options]' \
"-f[Flush everything out of kernel's export table]" \ '-s[Display the current export list suitable for /etc/exports]' \
'-v[Be verbose]' \ '-v[Be verbose]'
'-s[Display the current export list suitable for /etc/exports]' }
_exportfs "$@"
# 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

View File

@ -28,7 +28,7 @@
# Description # Description
# ----------- # -----------
# #
# Completion script for glances 4.3.3 (https://nicolargo.github.io/glances/). # Completion script for glances (https://nicolargo.github.io/glances/).
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Authors # Authors
@ -42,10 +42,8 @@
_glances() { _glances() {
_arguments \ _arguments \
'(- *)'{-h,--help}'[show this help message and exit]' \ '(- *)'{-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]" \ '(- *)'{-V,--version}"[show program's version number and exit]" \
'(-d --debug)'{-d,--debug}'[enable debug mode]' \ '(-C,--config)'{-C,--config}'[path to the configuration file]: :_files' \
'(-C --config)'{-C,--config}'[path to the configuration file]: :_files' \
'(--modules-list --module-list)'{--modules-list,--module-list}'[display modules list and exit]' \ '(--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' \ '(--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' \ '(--enable-plugin --enable-plugins)'{--enable-plugin,--enable-plugins}'[enable plugin(comma separated list)]:plugin' \
@ -64,8 +62,7 @@ _glances() {
'--disable-bg[disable background colors in the terminal]' \ '--disable-bg[disable background colors in the terminal]' \
'--enable-irq[enable IRQ mode]' \ '--enable-irq[enable IRQ mode]' \
'--enable-process-extended[enable extended stats on top process]' \ '--enable-process-extended[enable extended stats on top process]' \
'--disable-separator[disable separator in the UI]' \ '(--separator --enable-separator)'{--separator,--enable-separator}'[enable 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)' \ '--sort-process[sort processes]: :(cpu_percent memory_percent username cpu_times io_counters name)' \
'(--programs --program)'{--programs,--program}'[Accumulate processes by program]' \ '(--programs --program)'{--programs,--program}'[Accumulate processes by program]' \
'--export[enable export module]:module' \ '--export[enable export module]:module' \
@ -73,12 +70,11 @@ _glances() {
'--export-csv-overwrite[overwrite existing CSV file]' \ '--export-csv-overwrite[overwrite existing CSV file]' \
'--export-json-file[file path for JSON exporter]: :_files' \ '--export-json-file[file path for JSON exporter]: :_files' \
'--export-graph-path[Folder for Graph 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' \ '(-c --client)'{-c,--client}'[connect to a Glances server]:host:_hosts' \
'(-s --server)'{-s,--server}'[run Glances in server mode]' \ '(-s --server)'{-s,--server}'[run Glances in server mode]' \
'--browser[start the client browser]' \ '--browser[start the client browser]' \
'--disable-autodiscover[disable autodiscover feature]' \ '--disable-autodiscover[disable autodiscover feature]' \
'(-p --port)'{-p,--port}'[define the client/server TCP port]:port' \ '(-p --port)'{-p,--port}'[define the client/server TCP port]' \
'(-B --bind)'{-B,--bind}'[bind server to the given IPv4/IPv6 address or hostname]:host:_hosts' \ '(-B --bind)'{-B,--bind}'[bind server to the given IPv4/IPv6 address or hostname]:host:_hosts' \
'--username[define a client/server username]' \ '--username[define a client/server username]' \
'--password[define a client/server password]' \ '--password[define a client/server password]' \

View File

@ -51,7 +51,7 @@ _arguments -s -C \
'(-n --noparity)'{-n,--noparity}'[Set the parity of the serial line to none]' \ '(-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]' \ '(-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' \ '(-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' \ '(-p --pause)'{-p,--pause}'[Sleep for given seconds before the invocation of ldattach]:value' \
'(- *)'{-h,--help}'[Display help text and exit]'\ '(- *)'{-h,--help}'[Display help text and exit]'\
'(- *)'{-V,--version}'[Print version and exit]' \ '(- *)'{-V,--version}'[Print version and exit]' \

View File

@ -28,7 +28,7 @@
# Description # Description
# ----------- # -----------
# #
# Completion script for Node.js v25.0.0 (https://nodejs.org) # Completion script for Node.js v24.4.0 (https://nodejs.org)
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Authors # Authors
@ -69,7 +69,10 @@ _node_scripts() {
_describe 'scripts' scripts _describe 'scripts' scripts
} }
_arguments \ local curcontext="$curcontext" state line ret=1
typeset -A opt_args
_arguments -C \
'-[script read from stdin (default; interactive mode if a tty)]' \ '-[script read from stdin (default; interactive mode if a tty)]' \
'--[indicate the end of node options]' \ '--[indicate the end of node options]' \
'--abort-on-uncaught-exception[aborting instead of exiting causes a core file to be generated for analysis]' \ '--abort-on-uncaught-exception[aborting instead of exiting causes a core file to be generated for analysis]' \
@ -77,8 +80,6 @@ _arguments \
'--allow-child-process[allow use of child process when any permissions are set]' \ '--allow-child-process[allow use of child process when any permissions are set]' \
'--allow-fs-read=[allow permissions to read the filesystem]: :_files' \ '--allow-fs-read=[allow permissions to read the filesystem]: :_files' \
'--allow-fs-write=[allow permissions to write in the filesystem]:_files' \ '--allow-fs-write=[allow permissions to write in the filesystem]:_files' \
'--allow-inspector[allow use of inspector when any permissions are set]' \
'--allow-net[allow use of network when any permissions are set]' \
'--allow-wasi[allow wasi when any permissions are set]' \ '--allow-wasi[allow wasi when any permissions are set]' \
'--allow-worker[allow worker threads when any permissions are set]' \ '--allow-worker[allow worker threads when any permissions are set]' \
'--build-snapshot[generate a snapshot blob when the process exits]' \ '--build-snapshot[generate a snapshot blob when the process exits]' \
@ -109,17 +110,16 @@ _arguments \
'--experimental-default-config-file[set config file from default config file]' \ '--experimental-default-config-file[set config file from default config file]' \
'--experimental-eventsource[enable experimental EventSource API]' \ '--experimental-eventsource[enable experimental EventSource API]' \
'--experimental-import-meta-resolve[experimental ES Module import.meta.resolve() support]' \ '--experimental-import-meta-resolve[experimental ES Module import.meta.resolve() support]' \
'--experimental-inspector-network-resource[experimental load network resources via the inspector]' \
'(--loader --experimental-loader)'{--loader,--experimental-loader}'=[Specify the module of a custom ECMAScript Module loader]: :_files' \ '(--loader --experimental-loader)'{--loader,--experimental-loader}'=[Specify the module of a custom ECMAScript Module loader]: :_files' \
'--experimental-network-inspection[enable experimental network inspection support]' \ '--experimental-network-inspection[enable experimental network inspection support]' \
'--experimental-print-required-tla[print pending top-level await]' \ '--experimental-print-required-tla[print pending top-level await]' \
'--experimental-quic[experimental QUIC support]' \
'--experimental-sea-config=[generate a blob that can be embedded into the single executable application]: :_files' \ '--experimental-sea-config=[generate a blob that can be embedded into the single executable application]: :_files' \
'--experimental-test-coverage[enable code coverage in the test runner]' \ '--experimental-test-coverage[enable code coverage in the test runner]' \
'--experimental-test-module-mocks[enable module mocking in the test runner]' \ '--experimental-test-module-mocks[enable module mocking in the test runner]' \
'--experimental-transform-types[enable transformation of TypeScript-onlysyntax into JavaScript code]' \ '--experimental-transform-types[enable transformation of TypeScript-onlysyntax into JavaScript code]' \
'--experimental-vm-modules[experimental ES Module support in vm module]' \ '--experimental-vm-modules[experimental ES Module support in vm module]' \
'--experimental-worker-inspection[experimental worker inspection support]' \ '--experimental-wasm-modules[experimental ES module support for webassembly modules]' \
'--experimental-webstorage[experimental Web Storage API]' \
'--expose-gc[expose gc extension]' \ '--expose-gc[expose gc extension]' \
'--force-context-aware[disable loading non-context-aware addons]' \ '--force-context-aware[disable loading non-context-aware addons]' \
'--force-fips[force FIPS crypto]' \ '--force-fips[force FIPS crypto]' \
@ -145,10 +145,8 @@ _arguments \
'--jitless[Disable runtime allocation of executable memory]' \ '--jitless[Disable runtime allocation of executable memory]' \
'--localstorage-file=[file used to persist localStorage data]:file:_files' \ '--localstorage-file=[file used to persist localStorage data]:file:_files' \
'--max-http-header-size=[set the maximum size of HTTP headers]: :number' \ '--max-http-header-size=[set the maximum size of HTTP headers]: :number' \
"--max-old-space-size-percentage=[set V8's max old space size as a percentage of available memory]:memory" \
'--network-family-autoselection-attempt-timeout=[sets the default value for the network family autoselection attempt timeout]:timeout' \ '--network-family-autoselection-attempt-timeout=[sets the default value for the network family autoselection attempt timeout]:timeout' \
'--no-addons[disable loading native addons]' \ '--no-addons[disable loading native addons]' \
'--no-async-context-frame[improve AsyncLocalStorage performance with AsyncContextFrame]' \
'--no-deprecation[silence deprecation warnings]' \ '--no-deprecation[silence deprecation warnings]' \
'--no-experimental-detect-module[when ambiguous modules fail to evaluate, try again to evaluate them as ES modules]' \ '--no-experimental-detect-module[when ambiguous modules fail to evaluate, try again to evaluate them as ES modules]' \
'--no-experimental-global-navigator[expose experimental Navigator API on the global scope]' \ '--no-experimental-global-navigator[expose experimental Navigator API on the global scope]' \
@ -160,9 +158,7 @@ _arguments \
'--no-extra-info-on-fatal-exception[hide extra information on fatal exception that causes exit]' \ '--no-extra-info-on-fatal-exception[hide extra information on fatal exception that causes exit]' \
'--no-force-async-hooks-checks[disable checks for async_hooks]' \ '--no-force-async-hooks-checks[disable checks for async_hooks]' \
'--no-global-search-paths[disable global module search paths]' \ '--no-global-search-paths[disable global module search paths]' \
'--no-network-family-autoselection[disable network address family autodetection algorithm]' \
'--no-warnings[silence all process warnings]' \ '--no-warnings[silence all process warnings]' \
'--no-webstorage[disable Web Storage API]' \
'--node-memory-debug[run with extra debug checks for memory leaks in Node.js itself]' \ '--node-memory-debug[run with extra debug checks for memory leaks in Node.js itself]' \
'--openssl-config=[load OpenSSL configuration from the specified file (overrides OPENSSL_CONF)]:file:_files' \ '--openssl-config=[load OpenSSL configuration from the specified file (overrides OPENSSL_CONF)]:file:_files' \
'--openssl-legacy-provider[enable OpenSSL 3.0 legacy provider]' \ '--openssl-legacy-provider[enable OpenSSL 3.0 legacy provider]' \
@ -195,13 +191,11 @@ _arguments \
'--test-coverage-include=[include files from coverage report that match this glob pattern]:pattern' \ '--test-coverage-include=[include files from coverage report that match this glob pattern]:pattern' \
'--test-coverage-lines=[the line coverage minimum threshold]:threshold' \ '--test-coverage-lines=[the line coverage minimum threshold]:threshold' \
'--test-force-exit[force test runner to exit upon completion]' \ '--test-force-exit[force test runner to exit upon completion]' \
'--test-global-setup=[specify the path to the global setup file]:file:_files' \
'--test-isolation=[configurations the type of test isolation used in the test runner]:isolation' \ '--test-isolation=[configurations the type of test isolation used in the test runner]:isolation' \
'--test-name-pattern=[run tests whose name matches this regular expression]:pattern' \ '--test-name-pattern=[run tests whose name matches this regular expression]:pattern' \
'--test-only[run tests with "only" option set]' \ '--test-only[run tests with "only" option set]' \
'*--test-reporter=[report test output using the given reporter]:reporter:(tap spec dot)' \ '*--test-reporter=[report test output using the given reporter]:reporter:(tap spec dot)' \
'*--test-reporter-destination=[report given reporter to the given destination]:destination:_files' \ '*--test-reporter-destination=[report given reporter to the given destination]:destination:_files' \
'--test-rerun-failures=[specify the path to the rerun state file]:state file:_files' \
'--test-shard=[run test at specific shard]:shard' \ '--test-shard=[run test at specific shard]:shard' \
'--test-skip-pattern=[run tests whose name do not match this regular expression]' \ '--test-skip-pattern=[run tests whose name do not match this regular expression]' \
'--test-timeout=[specify test runner timeout]' \ '--test-timeout=[specify test runner timeout]' \
@ -244,7 +238,9 @@ _arguments \
'--zero-fill-buffers[automatically zero-fill all newly allocated Buffer and SlowBuffer instances]' \ '--zero-fill-buffers[automatically zero-fill all newly allocated Buffer and SlowBuffer instances]' \
'(- 1 *)'{-h,--help}'[print node command line options]' \ '(- 1 *)'{-h,--help}'[print node command line options]' \
'(- 1 *)'{-v,--version}'[print Node.js version]' \ '(- 1 *)'{-v,--version}'[print Node.js version]' \
'*: :_node_args' '*: :_node_args' && ret=0
return ret
# Local Variables: # Local Variables:
# mode: Shell-Script # mode: Shell-Script

View File

@ -73,7 +73,6 @@ _protoc() {
'--js_out=[Generate JavaScript source]:out_dir:_files -/' \ '--js_out=[Generate JavaScript source]:out_dir:_files -/' \
'--objc_out=[Generate Objective C header and source]:out_dir:_files -/' \ '--objc_out=[Generate Objective C header and source]:out_dir:_files -/' \
'--php_out=[Generate PHP source file]: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 -/' \ '--python_out=[Generate Python source file]:out_dir:_files -/' \
'--ruby_out=[Generate Ruby source file]:out_dir:_files -/' \ '--ruby_out=[Generate Ruby source file]:out_dir:_files -/' \
'--rust_out=[Generate Rust sources]:out_dir:_files -/' \ '--rust_out=[Generate Rust sources]:out_dir:_files -/' \

View File

@ -24,7 +24,7 @@
# Description # Description
# ----------- # -----------
# #
# Completion script for ts-node v10.9.2. (https://github.com/TypeStrong/ts-node) # Completion script for ts-node v10.9.1. (https://github.com/TypeStrong/ts-node)
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Authors # Authors
@ -41,7 +41,6 @@ _arguments \
'(-e --eval)'{-e,--eval}'[Evaluate code]:code' \ '(-e --eval)'{-e,--eval}'[Evaluate code]:code' \
'(-p --print)'{-p,--print}'[Print result of "--eval"]' \ '(-p --print)'{-p,--print}'[Print result of "--eval"]' \
'*'{-r,--require}'[Require a node module before execution]:path:_files' \ '*'{-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]' \ '--esm[Bootstrap with the ESM loader, enabling full ESM support]' \
'--swc[Use the faster swc transpiler]' \ '--swc[Use the faster swc transpiler]' \
'(- *)--showConfig[Print resolved configuration and exit]' \ '(- *)--showConfig[Print resolved configuration and exit]' \