commit
e897589c96
|
@ -325,6 +325,8 @@ elif [[ $words[2] == -* ]]; then
|
||||||
'--trim-dir[remove old files from directory _PATH_]: :_files -/' \
|
'--trim-dir[remove old files from directory _PATH_]: :_files -/' \
|
||||||
'--trim-max-size[specify the maximum size for --trim-dir]:size' \
|
'--trim-max-size[specify the maximum size for --trim-dir]:size' \
|
||||||
'--trim-method[specify the method for --trim-dir]: :(atime mtime)' \
|
'--trim-method[specify the method for --trim-dir]: :(atime mtime)' \
|
||||||
|
'--trim-recompress[recompress to level LEVEL]:level' \
|
||||||
|
'--trim-recompress-threads[use up to THREADS threads when recompressing]:threads' \
|
||||||
'--checksum-file[print the checksum of the file at PATH]: :_files' \
|
'--checksum-file[print the checksum of the file at PATH]: :_files' \
|
||||||
'--extract-result[extract file data stored in result file at PATH to the current working directory]' \
|
'--extract-result[extract file data stored in result file at PATH to the current working directory]' \
|
||||||
'(-k --get-config)'{-k,--get-config}'[print the value of configuration key]:key' \
|
'(-k --get-config)'{-k,--get-config}'[print the value of configuration key]:key' \
|
||||||
|
|
|
@ -46,6 +46,7 @@ _arguments \
|
||||||
'--config-file=[Specify the path of .clang-tidy or custom config-file]: :_files' \
|
'--config-file=[Specify the path of .clang-tidy or custom config-file]: :_files' \
|
||||||
'--dump-config[Dumps configuration in the YAML format to stdout]' \
|
'--dump-config[Dumps configuration in the YAML format to stdout]' \
|
||||||
'--enable-check-profile[Enable per-check timing profiles, and print a report to stderr]' \
|
'--enable-check-profile[Enable per-check timing profiles, and print a report to stderr]' \
|
||||||
|
'--enable-module-headers-parsing[Enable preprocessor-level module header parsing for C++20 and above]' \
|
||||||
'--explain-config[For each enabled check explains, where it is enabled]' \
|
'--explain-config[For each enabled check explains, where it is enabled]' \
|
||||||
'--export-fixes=[YAML file to store suggested fixes in]: :_files' \
|
'--export-fixes=[YAML file to store suggested fixes in]: :_files' \
|
||||||
'*--extra-arg[Additional argument to append to the compiler command line]:arg' \
|
'*--extra-arg[Additional argument to append to the compiler command line]:arg' \
|
||||||
|
@ -55,6 +56,7 @@ _arguments \
|
||||||
'--fix-notes[If a warning has no fix, but a single fix can be found through an associated diagnostic node, apply the fix]' \
|
'--fix-notes[If a warning has no fix, but a single fix can be found through an associated diagnostic node, apply the fix]' \
|
||||||
'--format-style=[Style for formatting code around applied fixes]: :(llvm google webkit mozilla)' \
|
'--format-style=[Style for formatting code around applied fixes]: :(llvm google webkit mozilla)' \
|
||||||
'--header-filter=[Regular expression matching the names of the headers to output diagnostics from]:regexp' \
|
'--header-filter=[Regular expression matching the names of the headers to output diagnostics from]:regexp' \
|
||||||
|
'--line-filter=[List of files with line ranges to filter the warnings]' \
|
||||||
'(- *)--list-checks[List all enabled checks and exit]' \
|
'(- *)--list-checks[List all enabled checks and exit]' \
|
||||||
'--load=[Load the specified plugin]: :_files' \
|
'--load=[Load the specified plugin]: :_files' \
|
||||||
'-p[Build directory where compile_commands.json is]: :_files -/' \
|
'-p[Build directory where compile_commands.json is]: :_files -/' \
|
||||||
|
|
40
src/_console
40
src/_console
|
@ -35,30 +35,38 @@
|
||||||
# -------
|
# -------
|
||||||
#
|
#
|
||||||
# * loranger (https://github.com/loranger)
|
# * loranger (https://github.com/loranger)
|
||||||
# * Yohan Tambè (https://github.com/Cronos87)
|
# * Yohan Tamb<EFBFBD>«² (https://github.com/Cronos87)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_find_console () {
|
_console_find_console() {
|
||||||
echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)"
|
echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)"
|
||||||
}
|
}
|
||||||
|
|
||||||
_console_get_command_list () {
|
_console_get_command_list() {
|
||||||
IFS=" "
|
IFS=" "
|
||||||
`_find_console` --no-ansi | \
|
`_console_find_console` --no-ansi | \
|
||||||
sed "1,/Available commands/d" | \
|
sed "1,/Available commands/d" | \
|
||||||
awk '/ [a-z]+/ { print $0 }' | \
|
awk '/ [a-z]+/ { print $0 }' | \
|
||||||
sed -E 's/^[ ]+//g' | \
|
sed -E 's/^[ ]+//g' | \
|
||||||
sed -E 's/[:]+/\\:/g' | \
|
sed -E 's/[:]+/\\:/g' | \
|
||||||
sed -E 's/[ ]{2,}/\:/g'
|
sed -E 's/[ ]{2,}/\:/g'
|
||||||
}
|
}
|
||||||
|
|
||||||
_console () {
|
_console() {
|
||||||
local -a commands
|
local -a commands
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
commands=(`_console_get_command_list`)
|
commands=(`_console_get_command_list`)
|
||||||
_describe 'commands' commands
|
_describe 'commands' commands
|
||||||
}
|
}
|
||||||
|
|
||||||
compdef _console php console
|
compdef _console php console
|
||||||
compdef _console console
|
compdef _console console
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
|
@ -49,12 +49,9 @@ _cppcheck_files() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_cppcheck() {
|
_cppcheck() {
|
||||||
local curcontext="$curcontext" state line
|
|
||||||
typeset -A opt_args
|
|
||||||
|
|
||||||
local check_ids='(all warning style performance portability information unusedFunction missingInclude)'
|
local check_ids='(all warning style performance portability information unusedFunction missingInclude)'
|
||||||
|
|
||||||
_arguments -C \
|
_arguments \
|
||||||
"--addon=[Execute addon]" \
|
"--addon=[Execute addon]" \
|
||||||
"--addon-python=[Specify the python interpreter]: :_files" \
|
"--addon-python=[Specify the python interpreter]: :_files" \
|
||||||
"--cppcheck-build-dir=[Analysis output directory]:directory:_files -/" \
|
"--cppcheck-build-dir=[Analysis output directory]:directory:_files -/" \
|
||||||
|
|
47
src/_dad
47
src/_dad
|
@ -39,30 +39,37 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_dad() {
|
_dad() {
|
||||||
local -a commands
|
typeset -A opt_args
|
||||||
|
local context state line
|
||||||
|
local curcontext="$curcontext"
|
||||||
|
|
||||||
commands=(
|
local -a commands=(
|
||||||
"start:Start aria2c daemon"
|
"start:Start aria2c daemon"
|
||||||
"stop:Stop aria2c daemon"
|
"stop:Stop aria2c daemon"
|
||||||
)
|
)
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
'(- 1 *)'-h"[Show help and exit]" \
|
'(- 1 *)'-h"[Show help and exit]" \
|
||||||
"-d[Set download dir]:download_dir:->val" \
|
"-d[Set download dir]:download_dir:->val" \
|
||||||
"-s[Set secret token]:secret_token:->val" \
|
"-s[Set secret token]:secret_token:->val" \
|
||||||
"-u[Set aria2c username]:username:->val" \
|
"-u[Set aria2c username]:username:->val" \
|
||||||
"-p[Set aria2c password]:password:->val" \
|
"-p[Set aria2c password]:password:->val" \
|
||||||
'1:cmd:->cmds' \
|
'1:cmd:->cmds' \
|
||||||
'*: : :->args' \
|
'*: : :->args'
|
||||||
|
|
||||||
case "$state" in
|
case "$state" in
|
||||||
(cmds)
|
(cmds)
|
||||||
_describe -t commands 'commands' commands
|
_describe -t commands 'commands' commands
|
||||||
;;
|
;;
|
||||||
(*)
|
esac
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_dad
|
_dad
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for direnv 2.32.3 (https://direnv.net/)
|
# Completion script for direnv 2.34.0 (https://direnv.net/)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
@ -69,7 +69,7 @@ _direnv() {
|
||||||
'*:: :->command_args' && ret=0
|
'*:: :->command_args' && ret=0
|
||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
command_args)
|
(command_args)
|
||||||
case $words[1] in
|
case $words[1] in
|
||||||
(allow|permit|grant|block|deny|revoke|edit)
|
(allow|permit|grant|block|deny|revoke|edit)
|
||||||
_arguments \
|
_arguments \
|
||||||
|
@ -93,6 +93,11 @@ _direnv() {
|
||||||
'2:integrity hash' \
|
'2:integrity hash' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
|
(status)
|
||||||
|
_arguments \
|
||||||
|
'--json[print status information in JSON format]' \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
(version)
|
(version)
|
||||||
_arguments \
|
_arguments \
|
||||||
'1:version at least' \
|
'1:version at least' \
|
||||||
|
|
|
@ -61,21 +61,21 @@ _arguments -C \
|
||||||
'(-l --list)'{-l,--list}'[List all gists for user ]::user' \
|
'(-l --list)'{-l,--list}'[List all gists for user ]::user' \
|
||||||
'(-h --help)'{-h,--help}'[print options help]' \
|
'(-h --help)'{-h,--help}'[print options help]' \
|
||||||
'(-v --version)'{-v,--version}'[print version]' \
|
'(-v --version)'{-v,--version}'[print version]' \
|
||||||
'(-r --read)'{-r,--read}'[Read a gist and print out the contents]:user gists:user_gists' \
|
'(-r --read)'{-r,--read}'[Read a gist and print out the contents]:user gists:_gist_read_gists' \
|
||||||
'*: :_files' && ret=0
|
'*: :_files' && ret=0
|
||||||
|
|
||||||
_user_gists_cache_policy() {
|
_gist_cache_policy() {
|
||||||
# rebuild if cache is more than a day old
|
# rebuild if cache is more than a day old
|
||||||
local -a oldp
|
local -a oldp
|
||||||
oldp=( "$1"(mh+1) )
|
oldp=( "$1"(mh+1) )
|
||||||
(( $#oldp ))
|
(( $#oldp ))
|
||||||
}
|
}
|
||||||
|
|
||||||
user_gists() {
|
_gist_read_gists() {
|
||||||
local update_policy ret=1
|
local update_policy ret=1
|
||||||
zstyle -s ":completion:${curcontext}:" cache-policy update_policy
|
zstyle -s ":completion:${curcontext}:" cache-policy update_policy
|
||||||
if [[ -z "$update_policy" ]]; then
|
if [[ -z "$update_policy" ]]; then
|
||||||
zstyle ":completion:${curcontext}:" cache-policy _user_gists_cache_policy
|
zstyle ":completion:${curcontext}:" cache-policy _gist_cache_policy
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# stores the gists of the logged in user in the format ID[Description]
|
# stores the gists of the logged in user in the format ID[Description]
|
||||||
|
|
41
src/_optirun
41
src/_optirun
|
@ -39,29 +39,24 @@
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
local curcontext="$curcontext" state line
|
local -a arguments=(
|
||||||
typeset -A opt_args
|
'--version[output version information]'
|
||||||
|
'(-h --help)'{-h,--help}'[show help]'
|
||||||
local -a arguments
|
'(-c --vgl-compress)'{-c,--vgl-compress}'[image transport method]:method:(proxy jpeg rgb xb yuv)'
|
||||||
|
'--failsafe[run a program even if the nvidia card is unavailable]:boolean:(true false)'
|
||||||
arguments=(
|
'--no-failsafe[do not run a program if the nvidia card is unavailable]'
|
||||||
'--version[output version information]'
|
'--vgl-options[options to be passed to vglrun (example: +tr)]'
|
||||||
'(-h --help)'{-h,--help}'[show help]'
|
'(-q --quiet --silent)'{-q,--quiet,--silent}'[suppress all logging messages]'
|
||||||
'(-c --vgl-compress)'{-c,--vgl-compress}'[image transport method]:method:(proxy jpeg rgb xb yuv)'
|
'(-v --verbose)'{-v,--verbose}'[increase the verbosity level of log messages]'
|
||||||
'--failsafe[run a program even if the nvidia card is unavailable]:boolean:(true false)'
|
'--debug[set the verbosity level to the maximum]'
|
||||||
'--no-failsafe[do not run a program if the nvidia card is unavailable]'
|
'(-b --bridge)'{-b,--bridge}'[specify bridge library to use: VirtualGL, Primus or auto]:method:(auto primus virtualgl none)'
|
||||||
'--vgl-options[options to be passed to vglrun (example: +tr)]'
|
'(-d --display)'{-d,--display}'[the X display number to use]:display:_x_display'
|
||||||
'(-q --quiet --silent)'{-q,--quiet,--silent}'[suppress all logging messages]'
|
'(-C --config)'{-C,--config}'[retrieve settings for Bumblebee from FILE]:file:_files'
|
||||||
'(-v --verbose)'{-v,--verbose}'[increase the verbosity level of log messages]'
|
'(-l --ldpath)'{-l,--ldpath}'[PATH the libraries like libGL.so are searched in]:file:_files -/'
|
||||||
'--debug[set the verbosity level to the maximum]'
|
'--primus-ldpath[a colon-separated list of paths which are searched for the primus libGL.so.1]:file:_files'
|
||||||
'(-b --bridge)'{-b,--bridge}'[specify bridge library to use: VirtualGL, Primus or auto]:method:(auto primus virtualgl none)'
|
'(-s --socket)'{-s,--socket}'[use FILE for communication with the daemon]:file:_files'
|
||||||
'(-d --display)'{-d,--display}'[the X display number to use]'
|
'--no-xorg[do not start secondary X server (implies -b none)]'
|
||||||
'(-C --config)'{-C,--config}'[retrieve settings for Bumblebee from FILE]:file:_files'
|
'*::arguments: _normal'
|
||||||
'(-l --ldpath)'{-l,--ldpath}'[PATH the libraries like libGL.so are searched in]:file:_files'
|
|
||||||
'--primus-ldpath[a colon-separated list of paths which are searched for the primus libGL.so.1]:file:_files'
|
|
||||||
'(-s --socket)'{-s,--socket}'[use FILE for communication with the daemon]:file:_files'
|
|
||||||
'--no-xorg[do not start secondary X server (implies -b none)]'
|
|
||||||
'*::arguments: _normal'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
_arguments $arguments
|
_arguments $arguments
|
||||||
|
|
143
src/_ralio
143
src/_ralio
|
@ -28,8 +28,8 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for ralio (https://github.com/oesmith/ralio), a
|
# Completion script for ralio (https://github.com/oesmith/ralio)
|
||||||
# Rally client
|
# a Rally client
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
@ -41,98 +41,89 @@
|
||||||
|
|
||||||
_ralio ()
|
_ralio ()
|
||||||
{
|
{
|
||||||
local curcontext="$curcontext" state line
|
local curcontext="$curcontext" state line
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
':command:->command' \
|
':command:->command' \
|
||||||
'*::options:->options' \
|
'*::options:->options'
|
||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
(command)
|
(command)
|
||||||
|
local -a subcommands=(
|
||||||
|
"backlog:Show the product backlog"
|
||||||
|
"sprint:Show the current team iteration"
|
||||||
|
"show:Show related information for an individual story, defect or task"
|
||||||
|
"open:Open a story, defect or task in a web browser"
|
||||||
|
"start:Set a task, defect or story state to in-progress and assign it to you"
|
||||||
|
"finish:Set a task, defect or story state to completed and assign it to you"
|
||||||
|
"abandon:Set a task, defect or story state to defined and clear the owner"
|
||||||
|
"block:Set a task, defect or story state to blocked"
|
||||||
|
"unblock:Set a task, defect or story state to unblocked"
|
||||||
|
"current:Show your current tasks and stories"
|
||||||
|
"point:Set the points for a story or defect"
|
||||||
|
"task:Allow you to create and delete story tasks."
|
||||||
|
"configure:Set your Rally configurations."
|
||||||
|
)
|
||||||
|
_describe -t commands 'ralio commands' subcommands
|
||||||
|
|
||||||
local -a subcommands
|
_arguments \
|
||||||
subcommands=(
|
{-V,--version}"[display version information]" \
|
||||||
"backlog:Show the product backlog"
|
{-h,--help}"[output usage information]"
|
||||||
"sprint:Show the current team iteration"
|
;;
|
||||||
"show:Show related information for an individual story, defect or task"
|
(options)
|
||||||
"open:Open a story, defect or task in a web browser"
|
case $line[1] in
|
||||||
"start:Set a task, defect or story state to in-progress and assign it to you"
|
(sprint)
|
||||||
"finish:Set a task, defect or story state to completed and assign it to you"
|
_arguments \
|
||||||
"abandon:Set a task, defect or story state to defined and clear the owner"
|
"-t[Show tasks]" \
|
||||||
"block:Set a task, defect or story state to blocked"
|
"-p[Project name]" \
|
||||||
"unblock:Set a task, defect or story state to unblocked"
|
"-f[Filter results]"
|
||||||
"current:Show your current tasks and stories"
|
|
||||||
"point:Set the points for a story or defect"
|
|
||||||
"task:Allow you to create and delete story tasks."
|
|
||||||
"configure:Set your Rally configurations."
|
|
||||||
)
|
|
||||||
_describe -t commands 'ralio commands' subcommands
|
|
||||||
|
|
||||||
_arguments -C \
|
|
||||||
{-V,--version}"[display version information]" \
|
|
||||||
{-h,--help}"[output usage information]"
|
|
||||||
;;
|
|
||||||
|
|
||||||
(options)
|
|
||||||
case $line[1] in
|
|
||||||
|
|
||||||
|
|
||||||
(sprint)
|
|
||||||
_arguments \
|
|
||||||
"-t[Show tasks]" \
|
|
||||||
"-p[Project name]" \
|
|
||||||
"-f[Filter results]"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(start | finish)
|
(start | finish)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--pair[Pair programming partner]' \
|
'--pair[Pair programming partner]' \
|
||||||
"--resolution[Resolution status]" \
|
"--resolution[Resolution status]" \
|
||||||
"--rootcause[Root cause]"
|
"--rootcause[Root cause]"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(task)
|
(task)
|
||||||
__ralio-task
|
__ralio-task
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
__ralio-task ()
|
__ralio-task ()
|
||||||
{
|
{
|
||||||
local curcontext="$curcontext" state line
|
local curcontext="$curcontext" state line
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
_arguments -C \
|
_arguments \
|
||||||
':command:->command' \
|
':command:->command' \
|
||||||
'*::options:->options'
|
'*::options:->options'
|
||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
(command)
|
(command)
|
||||||
|
local -a subcommands=(
|
||||||
local -a subcommands
|
|
||||||
subcommands=(
|
|
||||||
"create:Create a new task"
|
"create:Create a new task"
|
||||||
"delete:Delete a task"
|
"delete:Delete a task"
|
||||||
)
|
)
|
||||||
_describe -t commands 'ralio task' subcommands
|
_describe -t commands 'ralio task' subcommands
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(options)
|
(options)
|
||||||
case $line[1] in
|
case $line[1] in
|
||||||
|
(create|delete)
|
||||||
(create|delete)
|
_arguments \
|
||||||
_arguments \
|
|
||||||
-n"[Name of the new task]" \
|
-n"[Name of the new task]" \
|
||||||
-t"[Name of the parent task]"
|
-t"[Name of the parent task]"
|
||||||
;;
|
;;
|
||||||
|
esac
|
||||||
esac
|
;;
|
||||||
;;
|
esac
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_ralio "$@"
|
_ralio "$@"
|
||||||
|
|
|
@ -36,9 +36,7 @@
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
local -a redis_commands=(
|
||||||
local -a _1st_arguments
|
|
||||||
_1st_arguments=(
|
|
||||||
'append:append a value to a key'
|
'append:append a value to a key'
|
||||||
'auth:authenticate to the server'
|
'auth:authenticate to the server'
|
||||||
'bgrewriteeaof:asynchronously rewrite the append-only file'
|
'bgrewriteeaof:asynchronously rewrite the append-only file'
|
||||||
|
@ -163,17 +161,11 @@ _1st_arguments=(
|
||||||
'zunionstore:add multiple sorted sets and store the resulting sorted set in a new key'
|
'zunionstore:add multiple sorted sets and store the resulting sorted set in a new key'
|
||||||
)
|
)
|
||||||
|
|
||||||
local expl
|
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(-v --version)'{-v,--version}'[show version]' \
|
'(-v --version)'{-v,--version}'[show version]' \
|
||||||
'(-h --help)'{-h,--help}'[show help]' \
|
'(-h --help)'{-h,--help}'[show help]' \
|
||||||
'*:: :->subcmds' && return 0
|
'1::command:{ _describe -t commands "redis-cli subcommand" redis_commands }' \
|
||||||
|
&& return 0
|
||||||
if (( CURRENT == 1 )); then
|
|
||||||
_describe -t commands "redis-cli subcommand" _1st_arguments
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
# mode: Shell-Script
|
# mode: Shell-Script
|
||||||
|
|
|
@ -420,3 +420,11 @@ _rmlint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_rmlint "$@"
|
_rmlint "$@"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for rubocop 1.55 (https://github.com/rubocop/rubocop)
|
# Completion script for rubocop 1.65.0 (https://github.com/rubocop/rubocop)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
@ -93,6 +93,7 @@ _arguments \
|
||||||
'--display-only-safe-correctable[Only output safe-correctable offense messages with combined with --display-only-correctable]' \
|
'--display-only-safe-correctable[Only output safe-correctable offense messages with combined with --display-only-correctable]' \
|
||||||
'(-a --autocorrect)'{-a,--autocorrect}"[Auto-correct offenses(only when it's safe)]" \
|
'(-a --autocorrect)'{-a,--autocorrect}"[Auto-correct offenses(only when it's safe)]" \
|
||||||
'(-A --autocorrect-all)'{-A,--autocorrect-all}'[Autocorrect offenses(safe and unsafe)]' \
|
'(-A --autocorrect-all)'{-A,--autocorrect-all}'[Autocorrect offenses(safe and unsafe)]' \
|
||||||
|
'--disable-uncorrectable[used with --autocorrect to annotate any offenses that do not support autocorrect with comments]' \
|
||||||
'--auto-gen-config[Generate a configuration file acting as a TODO list]' \
|
'--auto-gen-config[Generate a configuration file acting as a TODO list]' \
|
||||||
'--regenerate-todo[Regenerate the TODO configuration file using the last configuration]' \
|
'--regenerate-todo[Regenerate the TODO configuration file using the last configuration]' \
|
||||||
'(--no-exclude-limit)--exclude-limit[Set the limit for how many files to explicitly exclude]:count' \
|
'(--no-exclude-limit)--exclude-limit[Set the limit for how many files to explicitly exclude]:count' \
|
||||||
|
|
|
@ -53,7 +53,7 @@ _arguments \
|
||||||
{-V,--version}'[print version information]' \
|
{-V,--version}'[print version information]' \
|
||||||
{-W,--wiki-link-count=}'[specify number of wiki links to show, when applicable]:number' \
|
{-W,--wiki-link-count=}'[specify number of wiki links to show, when applicable]:number' \
|
||||||
{-x,--external-sources}'[allow outside sources]' \
|
{-x,--external-sources}'[allow outside sources]' \
|
||||||
'--help[show this usage summary and exit]' \
|
'(- *)--help[show this usage summary and exit]' \
|
||||||
'*: :_files'
|
'*: :_files'
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
|
|
11
src/_wemux
11
src/_wemux
|
@ -37,9 +37,6 @@
|
||||||
# * Akira Maeda <https://github.com/glidenote>
|
# * Akira Maeda <https://github.com/glidenote>
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
|
||||||
# vim: ft=zsh sw=2 ts=2 et
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
_wemux() {
|
_wemux() {
|
||||||
|
|
||||||
|
@ -80,3 +77,11 @@ _wemux() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_wemux
|
_wemux
|
||||||
|
|
||||||
|
# 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/_xsel
12
src/_xsel
|
@ -58,6 +58,14 @@ _arguments -s \
|
||||||
{-t,--selectionTimeout}'[specify the timeout in milliseconds within which the selection must be retrieved]:number' \
|
{-t,--selectionTimeout}'[specify the timeout in milliseconds within which the selection must be retrieved]:number' \
|
||||||
{-l,--logfile}'[specify the file to log errors to when detached (default $HOME/.xsel.log)]:log file:_files' \
|
{-l,--logfile}'[specify the file to log errors to when detached (default $HOME/.xsel.log)]:log file:_files' \
|
||||||
{-n,--nodetach}'[do not detach from the controlling terminal]' \
|
{-n,--nodetach}'[do not detach from the controlling terminal]' \
|
||||||
{-h,--help}'[display usage information and exit]' \
|
'(- *)'{-h,--help}'[display usage information and exit]' \
|
||||||
{-v,--verbose}'[print informative messages; additional instances of -v raise the debugging level]' \
|
{-v,--verbose}'[print informative messages; additional instances of -v raise the debugging level]' \
|
||||||
'--version[output version information and exit]'
|
'(- *)--version[output version information and exit]'
|
||||||
|
|
||||||
|
# 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