Compare commits
16 Commits
7dec7ba504
...
6324b074ab
| Author | SHA1 | Date |
|---|---|---|
|
|
6324b074ab | |
|
|
b2d0232473 | |
|
|
b66a1aba63 | |
|
|
667494f334 | |
|
|
215780cd9c | |
|
|
20423a74f8 | |
|
|
55e9d8e6eb | |
|
|
e51f50f5a5 | |
|
|
1b97a1492b | |
|
|
4a7179ffff | |
|
|
7aeefd0020 | |
|
|
9e2a5239dc | |
|
|
c47e10641a | |
|
|
c49bb88997 | |
|
|
5fd23d5376 | |
|
|
e74df1347f |
|
|
@ -0,0 +1,59 @@
|
|||
#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
|
||||
|
|
@ -0,0 +1,125 @@
|
|||
#compdef lsipc
|
||||
# ------------------------------------------------------------------------------
|
||||
# Copyright (c) 2025 Github zsh-users - https://github.com/zsh-users
|
||||
#
|
||||
# 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 script for lsipc v2.41 (https://github.com/util-linux/util-linux)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
# -------
|
||||
#
|
||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
(( $+functions[_lsipc_output_columns] )) ||
|
||||
_lsipc_output_columns() {
|
||||
local -a columns=(
|
||||
"ID[Resource ID]"
|
||||
"OWNER[Owner's username or UID]"
|
||||
"PERMS[Permissions]"
|
||||
"CUID[Creator UID]"
|
||||
"CUSER[Creator user]"
|
||||
"CGID[Creator GID]"
|
||||
"CGROUP[Creator group]"
|
||||
"UID[User ID]"
|
||||
"USER[User name]"
|
||||
"GID[Group ID]"
|
||||
"GROUP[Group name]"
|
||||
"CTIME[Time of the last change]"
|
||||
|
||||
# Generic POSIX columns:
|
||||
"NAME[POSIX resource name]"
|
||||
"MTIME[Time of last action]"
|
||||
|
||||
# System V Shared-memory columns (--shmems):
|
||||
"SIZE[Segment size]"
|
||||
"NATTCH[Number of attached processes]"
|
||||
"STATUS[Status]"
|
||||
"ATTACH[Attach time]"
|
||||
"DETACH[Detach time]"
|
||||
"COMMAND[Creator command line]"
|
||||
"CPID[PID of the creator]"
|
||||
"LPID[PID of last user]"
|
||||
|
||||
# System V Message-queue columns (--queues):
|
||||
"USEDBYTES[Bytes used]"
|
||||
"MSGS[Number of messages]"
|
||||
"SEND[Time of last msg sent]"
|
||||
"RECV[Time of last msg received]"
|
||||
"LSPID[PID of the last msg sender]"
|
||||
"LRPID[PID of the last msg receiver]"
|
||||
|
||||
# System V Semaphore columns (--semaphores):
|
||||
"NSEMS[Number of semaphores]"
|
||||
"OTIME[Time of the last operation]"
|
||||
|
||||
# POSIX Semaphore columns (--posix-semaphores):
|
||||
"SVAL[Semaphore value]"
|
||||
|
||||
# Summary columns (--global):
|
||||
"RESOURCE[Resource name]"
|
||||
"DESCRIPTION[Resource description]"
|
||||
"LIMIT[System-wide limit]"
|
||||
"USED[Currently used]"
|
||||
"USE%[Currently use percentage]"
|
||||
)
|
||||
|
||||
_values -s ',' column $columns
|
||||
}
|
||||
|
||||
_arguments \
|
||||
'(- *)'{-h,--help}'[display this help]' \
|
||||
'(- *)'{-V,--version}'[display version]' \
|
||||
'(-m --shmems)'{-m,--shmems}'[shared memory segments]' \
|
||||
'(-M --posix-shmems)'{-M,--posix-shmems}'[POSIX shared memory segments]' \
|
||||
'(-q --queues)'{-q,--queues}'[POSIX shared memory segments]' \
|
||||
'(-Q --posix-mqueues)'{-Q,--posix-mqueues}'[POSIX message queues]' \
|
||||
'(-s --semaphores)'{-s,--semaphores}'[semaphores]' \
|
||||
'(-S --posix-semaphores)'{-S,--posix-semaphores}'[POSIX semaphores]' \
|
||||
'(-g --global)'{-g,--global}'[info about system-wide usage]' \
|
||||
\*{-i,--id}'[System V resource identified by id]:id' \
|
||||
\*{-N,--name}'[POSIX resource identified by name]:name' \
|
||||
'--noheadings[do not print headings]' \
|
||||
'--notruncate[do not truncate output]' \
|
||||
'(-b --bytes)'{-b,--bytes}'[print SIZE in bytes rather]' \
|
||||
'(-c --creator)'{-c,--creator}'[show creator and owner]' \
|
||||
'(-e --export)'{-e,--export}'[display in the export-able output format]' \
|
||||
'(-J --json)'{-J,--json}'[use the JSON output format]' \
|
||||
'(-n --newline)'{-n,--newline}'[display each piece of information on a new line]' \
|
||||
'(-l --list)'{-l,--list}'[force list output format]' \
|
||||
'(-o --output)'{-o,--output=-}'[define the columns to output]:columns:_lsipc_output_columns' \
|
||||
'(-P --numeric-perms)'{-p,--numeric-perms}'[print numeric permissions]' \
|
||||
'(-r --raw)'{-r,--raw}'[display in raw mode]' \
|
||||
'(-t --time)'{-t,--time}'[show attach, detach and change times]' \
|
||||
'(-y --shell)'{-y,--shell}'[use column names to be usable as shell variables]'
|
||||
|
||||
# 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
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
#compdef lslocks
|
||||
# ------------------------------------------------------------------------------
|
||||
# Copyright (c) 2025 Github zsh-users - https://github.com/zsh-users
|
||||
#
|
||||
# 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 script for lslocks v2.41 (https://github.com/util-linux/util-linux)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
# -------
|
||||
#
|
||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
(( $+functions[_lslocks_output_columns] )) ||
|
||||
_lslocks_output_columns() {
|
||||
local -a columns=(
|
||||
"COMMAND[command of the process holding the lock]"
|
||||
"PID[PID of the process holding the lock]"
|
||||
"TYPE[kind of lock]"
|
||||
"SIZE[size of the locks]"
|
||||
"INODE[inode number]"
|
||||
"MAJ\\:MIN[major:minor device number]"
|
||||
"MODE[lock access mode]"
|
||||
"M[mandatory state of the lock: 0 (none), 1 (set)]"
|
||||
"START[relative byte offset of the lock]"
|
||||
"END[ending offset of the lock]"
|
||||
"PATH[path of the locked file]"
|
||||
"BLOCKER[PID of the process blocking the lock]"
|
||||
"HOLDERS[holders of the lock]"
|
||||
)
|
||||
|
||||
_values -s ',' column $columns
|
||||
}
|
||||
|
||||
_arguments \
|
||||
'(- *)'{-h,--help}'[display this help]' \
|
||||
'(- *)'{-V,--version}'[display version]' \
|
||||
'(-b --bytes)'{-b,--bytes}'[print SIZE in bytes rather]' \
|
||||
'(-J --json)'{-J,--json}'[use the JSON output format]' \
|
||||
'(-i --noinaccessible)'{-i,--noinaccessible}'[ignore locks without read permissions]' \
|
||||
'(-o --output)'{-o,--output=-}'[output columns]:columns:_lslocks_output_columns' \
|
||||
'(-o --output --output-all)--output-all[output all columns]' \
|
||||
'(-p --pid)'{-p,--pid}'[display only locks held by this process]:pid:_pids' \
|
||||
'(-r --raw)'{-r,--raw}'[use the raw output format]' \
|
||||
'(-u --notruncate)'{-u,--notruncate}'[do not truncate text in columns]' \
|
||||
'(- *)'{-H,--list-columns}'[list the available columns]'
|
||||
|
||||
# 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
|
||||
|
|
@ -0,0 +1,107 @@
|
|||
#compdef lslogins
|
||||
# ------------------------------------------------------------------------------
|
||||
# Copyright (c) 2025 Github zsh-users - https://github.com/zsh-users
|
||||
#
|
||||
# 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 script for lslogins v2.41 (https://github.com/util-linux/util-linux)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
# -------
|
||||
#
|
||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
(( $+functions[_lslogins_output_columns] )) ||
|
||||
_lslogins_output_columns() {
|
||||
local -a columns=(
|
||||
"USER[user name]"
|
||||
"UID[user ID]"
|
||||
"GECOS[full user name]"
|
||||
"HOMEDIR[home directory]"
|
||||
"SHELL[login shell]"
|
||||
"NOLOGIN[log in disabled by nologin(8) or pam_nologin(8)]"
|
||||
"PWD-LOCK[password defined, but locked]"
|
||||
"PWD-EMPTY[password not defined]"
|
||||
"PWD-DENY[login by password disabled]"
|
||||
"PWD-METHOD[password encryption method]"
|
||||
"GROUP[primary group name]"
|
||||
"GID[primary group ID]"
|
||||
"SUPP-GROUPS[supplementary group names]"
|
||||
"SUPP-GIDS[supplementary group IDs]"
|
||||
"LAST-LOGIN[date of last login]"
|
||||
"LAST-TTY[last tty used]"
|
||||
"LAST-HOSTNAME[hostname during the last session]"
|
||||
"FAILED-LOGIN[date of last failed login]"
|
||||
"FAILED-TTY[where did the login fail?]"
|
||||
"HUSHED[user's hush settings]"
|
||||
"PWD-WARN[days user is warned of password expiration]"
|
||||
"PWD-CHANGE[date of last password change]"
|
||||
"PWD-MIN[number of days required between changes]"
|
||||
"PWD-MAX[max number of days a password may remain unchanged]"
|
||||
"PWD-EXPIR[password expiration date]"
|
||||
"CONTEXT[the user's security context]"
|
||||
"PROC[number of processes run by the user]"
|
||||
)
|
||||
|
||||
_values -s ',' column $columns
|
||||
}
|
||||
|
||||
_arguments \
|
||||
'(- *)'{-h,--help}'[display this help]' \
|
||||
'(- *)'{-V,--version}'[display version]' \
|
||||
'(-a --acc-expiration)'{-a,--acc-expiration}'[display info about passwords expiration]' \
|
||||
'(-c --colon-separate)'{-c,--colon-separate}'[display data in a format similar to /etc/passwd]' \
|
||||
'(-e --export)'{-e,--export}'[display in an export-able output format]' \
|
||||
'(-f --failed)'{-f,--failed}"[display data about the user's last failed logins]" \
|
||||
'(-G --supp-groups)'{-G,--supp-groups}'[display information about groups]' \
|
||||
'(-g --groups)'{-g,--groups=}'[display users belonging to the given group]:group:_groups' \
|
||||
'(-L --last)'{-L,--last}"[show info about the user's last login sessions]" \
|
||||
'(-l --logins)'{-l,--logins}'[display only users from the given logins]:logins' \
|
||||
'(-n --newline)'{-n,--newline}'[display each piece of information on a new line]'\
|
||||
'--noheadings[do not print headings]' \
|
||||
'--truncate[do not truncate output]' \
|
||||
'(-o --output)'{-o,--output=-}'[output columns]:columns:_lslogins_output_columns' \
|
||||
'(-o --output --output-all)--output-all[output all columns]' \
|
||||
'(-p --pwd)'{-p,--pwd}'[display information related to login by password]' \
|
||||
'(-r --raw)'{-r,--raw}'[display in raw mode]' \
|
||||
'(-s --system-accs)'{-s,--system-accs}'[display system accounts]' \
|
||||
'--time-format=[display dates format]:type:(short full iso)' \
|
||||
'(-u --user-accs)'{-u,--user-accs}'[display user accounts]' \
|
||||
'(-y --shell)'{-y,--shell}'[use column names to be usable as shell variable identifiers]' \
|
||||
'(-Z --context)'{-Z,--context}'[display SELinux contexts]' \
|
||||
'(-z --print0)'{-z,--print0}'[delimit user entries with a nul character]' \
|
||||
'--wtmp-file[set an alternate path for wtmp]:path:_files' \
|
||||
'--btmp-file[set an alternate path for btmp]:path:_files' \
|
||||
'--lastlog[set an alternate path for lastlog]:path:_files' \
|
||||
'--lastlog2[set an alternate path for lastlog2]:path:_files'
|
||||
|
||||
# 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
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
#compdef lsmem
|
||||
# ------------------------------------------------------------------------------
|
||||
# Copyright (c) 2025 Github zsh-users - https://github.com/zsh-users
|
||||
#
|
||||
# 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 script for lsmem v2.41 (https://github.com/util-linux/util-linux)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
# -------
|
||||
#
|
||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
(( $+functions[_lsmem_output_columns] )) ||
|
||||
_lsmem_output_columns() {
|
||||
local -a columns=(
|
||||
"RANGE[start and end address of the memory range]"
|
||||
"SIZE[size of the memory range]"
|
||||
"STATE[online status of the memory range]"
|
||||
"REMOVABLE[memory is removable]"
|
||||
"BLOCK[memory block number or blocks range]"
|
||||
"NODE[numa node of memory]"
|
||||
"ZONES[valid zones for the memory range]"
|
||||
)
|
||||
|
||||
_values -s ',' column $columns
|
||||
}
|
||||
|
||||
_arguments \
|
||||
'(- *)'{-h,--help}'[display this help]' \
|
||||
'(- *)'{-V,--version}'[display version]' \
|
||||
'(-J --json)'{-J,--json}'[use the JSON output format]' \
|
||||
'(-P --pairs)'{-P,--pairs}'[use key=value output format]' \
|
||||
'(-a --all)'{-a,--all}'[list each individual memory block]' \
|
||||
'(-b --bytes)'{-b,--bytes}'[print SIZE in bytes rather]' \
|
||||
'(-n --noheadings)'{-n,--noheadings}'[do not print headings]' \
|
||||
'(-o --output)'{-o,--output=-}'[output columns]:columns:_lsmem_output_columns' \
|
||||
'(-o --output --output-all)--output-all[output all columns]' \
|
||||
'(-r --raw)'{-r,--raw}'[use the raw output format]' \
|
||||
'(-S --split)'{-S,--split}'[split ranges by specified columns]:columns:_lsmem_output_columns' \
|
||||
'(-s --sysroot)'{-s,--sysroot}'[use the specified directory as system root]:dir:_files -/' \
|
||||
'--summary=-[print summary information]:when:(never always only)'
|
||||
|
||||
# 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
|
||||
24
src/_node
24
src/_node
|
|
@ -28,7 +28,7 @@
|
|||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for Node.js v24.4.0 (https://nodejs.org)
|
||||
# Completion script for Node.js v25.0.0 (https://nodejs.org)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
|
|
@ -69,10 +69,7 @@ _node_scripts() {
|
|||
_describe 'scripts' scripts
|
||||
}
|
||||
|
||||
local curcontext="$curcontext" state line ret=1
|
||||
typeset -A opt_args
|
||||
|
||||
_arguments -C \
|
||||
_arguments \
|
||||
'-[script read from stdin (default; interactive mode if a tty)]' \
|
||||
'--[indicate the end of node options]' \
|
||||
'--abort-on-uncaught-exception[aborting instead of exiting causes a core file to be generated for analysis]' \
|
||||
|
|
@ -80,6 +77,8 @@ _arguments -C \
|
|||
'--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-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-worker[allow worker threads when any permissions are set]' \
|
||||
'--build-snapshot[generate a snapshot blob when the process exits]' \
|
||||
|
|
@ -110,16 +109,17 @@ _arguments -C \
|
|||
'--experimental-default-config-file[set config file from default config file]' \
|
||||
'--experimental-eventsource[enable experimental EventSource API]' \
|
||||
'--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' \
|
||||
'--experimental-network-inspection[enable experimental network inspection support]' \
|
||||
'--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-test-coverage[enable code coverage 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-vm-modules[experimental ES Module support in vm module]' \
|
||||
'--experimental-wasm-modules[experimental ES module support for webassembly modules]' \
|
||||
'--experimental-webstorage[experimental Web Storage API]' \
|
||||
'--experimental-worker-inspection[experimental worker inspection support]' \
|
||||
'--expose-gc[expose gc extension]' \
|
||||
'--force-context-aware[disable loading non-context-aware addons]' \
|
||||
'--force-fips[force FIPS crypto]' \
|
||||
|
|
@ -145,8 +145,10 @@ _arguments -C \
|
|||
'--jitless[Disable runtime allocation of executable memory]' \
|
||||
'--localstorage-file=[file used to persist localStorage data]:file:_files' \
|
||||
'--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' \
|
||||
'--no-addons[disable loading native addons]' \
|
||||
'--no-async-context-frame[improve AsyncLocalStorage performance with AsyncContextFrame]' \
|
||||
'--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-global-navigator[expose experimental Navigator API on the global scope]' \
|
||||
|
|
@ -158,7 +160,9 @@ _arguments -C \
|
|||
'--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-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-webstorage[disable Web Storage API]' \
|
||||
'--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-legacy-provider[enable OpenSSL 3.0 legacy provider]' \
|
||||
|
|
@ -191,11 +195,13 @@ _arguments -C \
|
|||
'--test-coverage-include=[include files from coverage report that match this glob pattern]:pattern' \
|
||||
'--test-coverage-lines=[the line coverage minimum threshold]:threshold' \
|
||||
'--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-name-pattern=[run tests whose name matches this regular expression]:pattern' \
|
||||
'--test-only[run tests with "only" option set]' \
|
||||
'*--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-rerun-failures=[specify the path to the rerun state file]:state file:_files' \
|
||||
'--test-shard=[run test at specific shard]:shard' \
|
||||
'--test-skip-pattern=[run tests whose name do not match this regular expression]' \
|
||||
'--test-timeout=[specify test runner timeout]' \
|
||||
|
|
@ -238,9 +244,7 @@ _arguments -C \
|
|||
'--zero-fill-buffers[automatically zero-fill all newly allocated Buffer and SlowBuffer instances]' \
|
||||
'(- 1 *)'{-h,--help}'[print node command line options]' \
|
||||
'(- 1 *)'{-v,--version}'[print Node.js version]' \
|
||||
'*: :_node_args' && ret=0
|
||||
|
||||
return ret
|
||||
'*: :_node_args'
|
||||
|
||||
# Local Variables:
|
||||
# mode: Shell-Script
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for Ruby on Rails 7.2.0 (https://rubyonrails.org/).
|
||||
# Completion script for Ruby on Rails 8.1.0 (https://rubyonrails.org/).
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
|
|
@ -296,7 +296,7 @@ _rails_new() {
|
|||
'(-r --ruby)'{-r,--ruby=}'[Path to the Ruby binary of your choice]:path:_files' \
|
||||
'(-b --builder)'{-b,--builder=}'[Path to a application builder(can be a filesystem path or URL)]: :_rails_path_or_url' \
|
||||
'(-m --template)'{-m,--template=}'[Path to an application template(can be a filesystem path or URL)]: :_rails_path_or_url' \
|
||||
'(-d --database)'{-d,--database=}'[Preconfigure for selected database]:database:(mysql trilogy oracle postgresql sqlite3 frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql jdbc)' \
|
||||
'(-d --database)'{-d,--database=}'[Preconfigure for selected database]:database:(mysql trilogy oracle postgresql sqlite3 frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql jdbc mariadb-mysql mariadb-trilogy)' \
|
||||
--skip-gemfile"[Don't create a Gemfile]" \
|
||||
--skip-bundle"[Don't run bundle install]" \
|
||||
'(-G --skip-git)'{-G,--skip-git}'[Skip git init]' \
|
||||
|
|
@ -320,6 +320,7 @@ _rails_new() {
|
|||
--skip-dev-gems'[Skip development gems(e.g. web-console)]' \
|
||||
--skip-rubocop'[Skip RuboCop setup]' \
|
||||
--skip-brakeman'[Skip brakeman setup]' \
|
||||
--skip-bundler-audit'[Skip bundler-audit setup]' \
|
||||
--skip-ci'[Skip GitHub CI files]' \
|
||||
--dev'[Setup the application with Gemfile pointing to your Rails checkout]' \
|
||||
--devcontainer'[Generate devcontainer files]' \
|
||||
|
|
|
|||
|
|
@ -0,0 +1,50 @@
|
|||
#compdef swaplabel
|
||||
# ------------------------------------------------------------------------------
|
||||
# Copyright (c) 2025 Github zsh-users - https://github.com/zsh-users
|
||||
#
|
||||
# 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 script for swaplabel v2.41 (https://github.com/util-linux/util-linux)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
# -------
|
||||
#
|
||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
_arguments \
|
||||
'(- *)'{-h,--help}'[display help message]' \
|
||||
'(- *)'{-V,--version}'[display version]' \
|
||||
'(-L --label)'{-L,--label}'[specify a new label]:label' \
|
||||
'(-U --uuid)'{-U,--uuid}'[specify a new uuid]:uuid' \
|
||||
'*::file:_files'
|
||||
|
||||
# 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
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
#compdef swapoff
|
||||
# ------------------------------------------------------------------------------
|
||||
# Copyright (c) 2025 Github zsh-users - https://github.com/zsh-users
|
||||
#
|
||||
# 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 script for swapoff v2.41 (https://github.com/util-linux/util-linux)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
# -------
|
||||
#
|
||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
_arguments \
|
||||
'(-a --all)'{-a,--all}'[enable all swaps from /etc/fstab]' \
|
||||
'(- *)'{-h,--help}'[display help message]' \
|
||||
'(- *)'{-V,--version}'[display version]' \
|
||||
'-L[synonym for LABEL=<label>]:label' \
|
||||
'-U[synonym for UUID=<uuid>]:uuid' \
|
||||
'*::file:_files'
|
||||
|
||||
# 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
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
#compdef swapon
|
||||
# ------------------------------------------------------------------------------
|
||||
# Copyright (c) 2025 Github zsh-users - https://github.com/zsh-users
|
||||
#
|
||||
# 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 script for swapon v2.41 (https://github.com/util-linux/util-linux)
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
# Authors
|
||||
# -------
|
||||
#
|
||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
||||
#
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
(( $+functions[_swapon_column] )) ||
|
||||
_swapon_column() {
|
||||
local -a columns=(
|
||||
"NAME[device file or partition path]"
|
||||
"TYPE[type of the device]"
|
||||
"SIZE[size of the swap area]"
|
||||
"USED[bytes in use]"
|
||||
"PRIO[swap priority]"
|
||||
"UUID[swap uuid]"
|
||||
"LABEL[swap label]"
|
||||
)
|
||||
|
||||
_values -s ',' column $columns
|
||||
}
|
||||
|
||||
_arguments \
|
||||
'(-a --all)'{-a,--all}'[enable all swaps from /etc/fstab]' \
|
||||
'(-d --discard)'{-d,--discard=-}'[enable swap discards, if supported by device]:policy:(once pages)' \
|
||||
'(-e --ifexists)'{-e,--ifexists}'[silently skip devices that do not exist]' \
|
||||
'(-f --fixpgsz)'{-f,--fixpgsz}'[reinitialize the swap space if necessary]' \
|
||||
\*{-o,--options}'[comma-separated list of swap options]:options' \
|
||||
'(-p --priority)'{-p,--priority}'[specify the priority of the swap device]:priority' \
|
||||
'(-s --summary)'{-s,--summary}'[display summary about used swap devices]' \
|
||||
'(-T --fstab)'{-T,--fstab}'[alternative file to /etc/fstab]:path:_files' \
|
||||
'--show=-[display summary in definable table]:column:_swapon_column' \
|
||||
'--noheadings[do not print table heading(with --show)]' \
|
||||
'--raw[use the raw output format(with --show)]' \
|
||||
'--bytes[display swap size in bytes in --show output]' \
|
||||
'(-v --verbose)'{-v,--verbose}'[verbose mode]' \
|
||||
'(- *)'{-h,--help}'[display help message]' \
|
||||
'(- *)'{-V,--version}'[display version]' \
|
||||
'-L[synonym for LABEL=<label>]:label' \
|
||||
'-U[synonym for UUID=<uuid>]:uuid' \
|
||||
'*::file:_files'
|
||||
|
||||
# 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
|
||||
Loading…
Reference in New Issue