├── .editorconfig ├── .github └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── src ├── _afew ├── _age ├── _android ├── _archlinux-java ├── _artisan ├── _atach ├── _avdmanager ├── _bitcoin-cli ├── _bower ├── _bundle ├── _cap ├── _cask ├── _ccache ├── _cf ├── _chatblade ├── _choc ├── _chromium ├── _clang-check ├── _clang-format ├── _clang-tidy ├── _cmake ├── _coffee ├── _conan ├── _concourse ├── _console ├── _cppcheck ├── _dad ├── _dart ├── _dget ├── _dhcpcd ├── _diana ├── _direnv ├── _do-release-upgrade ├── _docpad ├── _drush ├── _ecdsautil ├── _emacs ├── _emacsclient ├── _emulator ├── _envdir ├── _exportfs ├── _fab ├── _fail2ban-client ├── _ffind ├── _fleetctl ├── _flutter ├── _fwupdmgr ├── _gas ├── _ghc ├── _gist ├── _git-flow ├── _git-pulls ├── _git-revise ├── _git-wtf ├── _glances ├── _golang ├── _google ├── _gpgconf ├── _grpcurl ├── _gtk-launch ├── _hello ├── _hledger ├── _homestead ├── _httpie ├── _ibus ├── _include-what-you-use ├── _inxi ├── _jest ├── _jmeter ├── _jmeter-plugins ├── _jonas ├── _jrnl ├── _kak ├── _kitchen ├── _knife ├── _l3build ├── _language_codes ├── _lilypond ├── _lscpu ├── _lunchy ├── _mc ├── _middleman ├── _mina ├── _mix ├── _mkcert ├── _mssh ├── _mussh ├── _mvn ├── _nano ├── _nanoc ├── _neo ├── _neofetch ├── _networkQuality ├── _nftables ├── _node ├── _nvm ├── _openssl ├── _openvpn3 ├── _optirun ├── _patool ├── _periscope ├── _pgsql_utils ├── _phing ├── _pixz ├── _pkcon ├── _play ├── _pm2 ├── _port ├── _pre-commit ├── _protoc ├── _pygmentize ├── _qmk ├── _rails ├── _ralio ├── _rdfind ├── _redis-cli ├── _rfkill ├── _rkt ├── _rmlint ├── _rslsync ├── _rspec ├── _rsvm ├── _rubocop ├── _sbt ├── _scala ├── _screencapture ├── _scrub ├── _sdd ├── _sdkmanager ├── _setcap ├── _setup.py ├── _sfdx ├── _shallow-backup ├── _shellcheck ├── _showoff ├── _srm ├── _stack ├── _subliminal ├── _supervisorctl ├── _supervisord ├── _svm ├── _teamocil ├── _thor ├── _tmuxinator ├── _tmuxp ├── _tox ├── _ts-node ├── _tsc ├── _udisksctl ├── _ufw ├── _uuidgen ├── _virtualbox ├── _vnstat ├── _wemux ├── _wg-quick ├── _xsel ├── _yarn ├── _yfm └── _zcash-cli ├── zsh-completions-howto.org └── zsh-completions.plugin.zsh /.editorconfig: -------------------------------------------------------------------------------- 1 | ; This file is for unifying the coding style for different editors and IDEs. 2 | ; More information at https://editorconfig.org/ 3 | 4 | root = true 5 | 6 | [_*] 7 | indent_style = space 8 | indent_size = 2 9 | tab_width = 2 10 | end_of_line = LF 11 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | - [ ] This compdef is not already available in zsh. 6 | - [ ] This compdef is not already available in their original project. 7 | - [ ] I am the original author, or I have authorization to submit this work. 8 | - [ ] This is a finished work. 9 | - [ ] It has a header containing authors, status and origin of the script. 10 | - [ ] It has a license header or I accept that it will be licensed under the terms of the Zsh license. 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # zsh word code files 2 | *.zwc 3 | 4 | # IDE files 5 | .vscode/ 6 | .idea/ 7 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | ## How to Contribute to zsh-completions 4 | 5 | Contributions are welcome, just make sure you follow the guidelines: 6 | 7 | * Completions are not accepted when already available in zsh. 8 | * Completions are not accepted when already available in their original project. 9 | * Please do not just copy/paste someone else's completion, ask before. 10 | * Partially implemented completions are not accepted. 11 | * Please add a header containing authors, status and origin of the script and license header if you do not wish to use the Zsh license (example [here](src/_tox)). 12 | * Any reasonable open source license is acceptable but note that we recommend the use of the Zsh license and that you should use it if you hope for the function to migrate to zsh itself. 13 | * Please try to follow the [Zsh completion style guide](https://github.com/zsh-users/zsh/blob/master/Etc/completion-style-guide). 14 | * Please send one separate pull request per file. 15 | * Send a pull request or ask for committer access. 16 | 17 | ## Contributing Completion Functions to Zsh 18 | 19 | The zsh project itself welcomes completion function contributions via 20 | [github pull requests](https://github.com/zsh-users/zsh/), 21 | [gitlab merge requests](https://gitlab.com/zsh-org/zsh/) or via patch 22 | files sent to its mailing list, `zsh-workers@zsh.org`. 23 | 24 | Contributing to zsh has the advantage of reaching the most users. 25 | 26 | ## Including Completion Functions in Upstream Projects 27 | 28 | Many upstream projects include zsh completions. 29 | 30 | If well maintained, this has the advantage that users get a completion 31 | function that matches the installed version of their software. 32 | 33 | If you are the upstream maintainer this is a good choice. If the project 34 | already includes completions for bash, fish, tcsh, etc then they are 35 | likely open to including zsh's too. It can also be a good option for 36 | completions handling commands that are system or distribution specific. 37 | 38 | Ideally, arrange for the project's build system to install the 39 | completion function in `$prefix/share/zsh/site-functions`. 40 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The Z Shell is copyright (c) 1992-2017 Paul Falstad, Richard Coleman, 2 | Zoltán Hidvégi, Andrew Main, Peter Stephenson, Sven Wischnowsky, and 3 | others. All rights reserved. Individual authors, whether or not 4 | specifically named, retain copyright in all changes; in what follows, they 5 | are referred to as `the Zsh Development Group'. This is for convenience 6 | only and this body has no legal status. The Z shell is distributed under 7 | the following licence; any provisions made in individual files take 8 | precedence. 9 | 10 | Permission is hereby granted, without written agreement and without 11 | licence or royalty fees, to use, copy, modify, and distribute this 12 | software and to distribute modified versions of this software for any 13 | purpose, provided that the above copyright notice and the following 14 | two paragraphs appear in all copies of this software. 15 | 16 | In no event shall the Zsh Development Group be liable to any party for 17 | direct, indirect, special, incidental, or consequential damages arising out 18 | of the use of this software and its documentation, even if the Zsh 19 | Development Group have been advised of the possibility of such damage. 20 | 21 | The Zsh Development Group specifically disclaim any warranties, including, 22 | but not limited to, the implied warranties of merchantability and fitness 23 | for a particular purpose. The software provided hereunder is on an "as is" 24 | basis, and the Zsh Development Group have no obligation to provide 25 | maintenance, support, updates, enhancements, or modifications. 26 | -------------------------------------------------------------------------------- /src/_afew: -------------------------------------------------------------------------------- 1 | #compdef afew 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for afew(version 3.0.1) an initial tagging script for notmuch mail. 32 | # (https://github.com/teythoon/afew) 33 | # 34 | # ------------------------------------------------------------------------------ 35 | # Authors 36 | # ------- 37 | # 38 | # * Jindřich Pilař (https://github.com/JindrichPilar) 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | _arguments \ 43 | '(- 1 *)'{-h,--help}'[display usage information]' \ 44 | '(- 1 *)'{-V,--version}"[show program's version number and exit]" \ 45 | "(-t --tag -m --move-mails)"{-w,--watch}"[continuously monitor the mailbox for new messages matching the given query]" \ 46 | "(-m --move-mails -w --watch)"{-t,--tag}"[run the tag filters]" \ 47 | "(-w --watch -m --move-mails)"{-m,--move-mails}"[move mail files between maildir folders]" \ 48 | "(-n --all)"{-a,--all}"[operate on all email]" \ 49 | "(-a --new)"{-n,--new}"[operate on all new email]" \ 50 | {-C,--notmuch-config=}"[specify path to notmuch configuration file]:files:_files" \ 51 | {-e,--enable-filters=}"[specify filter classes to use]:filter" \ 52 | {-d,--dry-run}"[don't change the DB]" \ 53 | {-R,--reference-set-size=}"[specify size of the reference set]:size [1000]" \ 54 | {-T,--reference-set-timeframe-days=}"[don't use emails older than specified age]:age (days) [30]" \ 55 | {-N,--notmuch-args=}"[arguments for nutmuch new(in move mode)]:notmuch arg" \ 56 | {-v,--verbose}"[be more verbose]" \ 57 | '*: :_guard "^-*" query' 58 | 59 | # Local Variables: 60 | # mode: Shell-Script 61 | # sh-indentation: 2 62 | # indent-tabs-mode: nil 63 | # sh-basic-offset: 2 64 | # End: 65 | # vim: ft=zsh sw=2 ts=2 et 66 | -------------------------------------------------------------------------------- /src/_age: -------------------------------------------------------------------------------- 1 | #compdef age 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for age 1.1.1 (https://github.com/FiloSottile/age). 7 | # 8 | # ------------------------------------------------------------------------------ 9 | # Authors 10 | # ------- 11 | # 12 | # * Hydrargyrum (https://github.com/hydrargyrum) 13 | # 14 | # ------------------------------------------------------------------------------ 15 | 16 | _arguments \ 17 | -A '-*' \ 18 | '(- *)'{-h,--help}'[show help message and exit]' \ 19 | '(-e --encrypt -d --decrypt)'{-e,--encrypt}'[Encrypt INPUT to OUTPUT]' \ 20 | '(-e --encrypt -d --decrypt -a --armor -p --passphrase -r --recipient -R --recipients-file)'{-d,--decrypt}'[Decrypt INPUT to OUTPUT]' \ 21 | \*{-i,--identity=}'[Encrypt/Decrypt using the identities at PATH]:IDENTITY:_files' \ 22 | '(-o --output)'{-o,--output=}'[Write encrypted/decrypted file to OUTPUT]:OUTPUT:_files' \ 23 | '(-j --plugin)'{-j,--plugin=}'[Encrypt/Decrypt using the data-less PLUGIN]:PLUGIN:' \ 24 | '(-d --decrypt)'\*{-r,--recipient=}'[Encrypt to the explicitly specified RECIPIENT]:RECIPIENT:' \ 25 | '(-d --decrypt)'\*{-R,--recipients-file=}'[Encrypt to the RECIPIENTS listed in the file at PATH]:RECIPIENTS_FILE:_files' \ 26 | '(-a --armor -d --decrypt)'{-a,--armor}'[Encrypt to an ASCII-only "armored" encoding]' \ 27 | '(-p --passphrase -d --decrypt)'{-p,--passphrase}'[Encrypt with a passphrase]' \ 28 | :INPUT:_files 29 | 30 | # Local Variables: 31 | # mode: Shell-Script 32 | # sh-indentation: 2 33 | # indent-tabs-mode: nil 34 | # sh-basic-offset: 2 35 | # End: 36 | # vim: ft=zsh sw=2 ts=2 et 37 | -------------------------------------------------------------------------------- /src/_archlinux-java: -------------------------------------------------------------------------------- 1 | #compdef archlinux-java 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for archlinux-java a tool for selecting default Java runtime (https://wiki.archlinux.org/index.php/java). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Jindřich Pilař (https://github.com/JindrichPilar) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | 42 | _archlinux-java_command_arguments() { 43 | case $words[1] in 44 | (set) 45 | local java_versions=("${(@f)$(archlinux-java status | tail -n +2 | tr -s ' ' | cut -d ' ' -f2)}") 46 | _describe -t output 'Downloads to delete' java_versions 47 | ;; 48 | esac 49 | } 50 | 51 | _archlinux-java() { 52 | local -a commands 53 | 54 | commands=( 55 | "status:List installed Java environments and enabled one" 56 | "get:Return the short name of the Java environment set as default" 57 | "set:Force as default" 58 | "unset:Unset current default Java environment" 59 | "fix:Fix an invalid/broken default Java environment configuration" 60 | "help:Show help" 61 | ) 62 | 63 | _arguments -C \ 64 | '1:cmd:->cmds' \ 65 | '*:: :->args' \ 66 | 67 | case "$state" in 68 | (cmds) 69 | _describe -t commands 'commands' commands 70 | ;; 71 | (*) 72 | _archlinux-java_command_arguments 73 | ;; 74 | esac 75 | } 76 | 77 | _archlinux-java 78 | 79 | # Local Variables: 80 | # mode: Shell-Script 81 | # sh-indentation: 2 82 | # indent-tabs-mode: nil 83 | # sh-basic-offset: 2 84 | # End: 85 | # vim: ft=zsh sw=2 ts=2 et 86 | -------------------------------------------------------------------------------- /src/_artisan: -------------------------------------------------------------------------------- 1 | #compdef artisan 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for artisan (http://laravel.com/docs/artisan). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * loranger (https://github.com/loranger) 38 | # * Yohan Tambè (https://github.com/Cronos87) 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | 43 | _artisan_get_command_list () { 44 | IFS=" " 45 | php artisan --no-ansi | \ 46 | sed "1,/Available commands/d" | \ 47 | awk '/ [a-z]+/ { print $1 }' | \ 48 | sed -E 's/^[ ]+//g' | \ 49 | sed -E 's/[:]+/\\:/g' | \ 50 | sed -E 's/[ ]{2,}/\:/g' 51 | } 52 | 53 | _artisan () { 54 | if [ -f artisan ]; then 55 | local -a commands 56 | IFS=$'\n' 57 | commands=(`_artisan_get_command_list`) 58 | _describe 'commands' commands 59 | fi 60 | } 61 | 62 | compdef _artisan php artisan 63 | compdef _artisan artisan 64 | -------------------------------------------------------------------------------- /src/_atach: -------------------------------------------------------------------------------- 1 | #compdef atach 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for atach (https://github.com/sorin-ionescu/atach). 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Sorin Ionescu 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | local state mode_values existing_sessions ret=1 38 | 39 | mode_values=( 40 | "none:disable redrawing" 41 | "ctrl_l:use ctrl + l to redraw" 42 | "winch:use sigwinch to redraw" 43 | ) 44 | 45 | existing_sessions=($(_call_program session atach)) 46 | 47 | _arguments -C -s -S \ 48 | '(--list -l)'{--list,-l}'[list sessions]' \ 49 | '(--sockets -L)'{--sockets,-L}'[list sockets]' \ 50 | '(--session -s)'{--session=,-s+}'[set the session name]:session' \ 51 | '(--char -c)'{--char=,-c+}'[set the detach character (default: ^\\)]:char' \ 52 | '(--redraw -r)'{--redraw=,-r+}'[set the redraw method (none, ctrl_l, or winch)]:mode:->mode' \ 53 | '(--detached -d)'{--detached,-d}'[start the session detached]' \ 54 | '(--no-detach -D)'{--no-detach,-D}'[disable detaching]' \ 55 | '(--no-suspend -Z)'{--no-suspend,-Z}'[disable suspending]' \ 56 | '(--version -v)'{--version,-v}'[display version and copyright]' \ 57 | '(--help -h)'{--help,-h}'[display help]' \ 58 | '(-)::args:->session-or-command' && ret=0 59 | 60 | case "$state" in 61 | (mode) 62 | _describe -t mode 'redraw mode' mode_values && ret=0 63 | ;; 64 | (session-or-command) 65 | _describe -t 'session' 'sessions' existing_sessions && ret=0 66 | _path_commands && ret=0 67 | ;; 68 | esac 69 | 70 | return $ret 71 | 72 | -------------------------------------------------------------------------------- /src/_cask: -------------------------------------------------------------------------------- 1 | #compdef cask 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 23 | # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for cask (https://cask.readthedocs.io) 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * ptrv 38 | # * Johan Andersson 39 | # * Sebastien Duthil 40 | # 41 | # ------------------------------------------------------------------------------ 42 | 43 | function _cask() { 44 | local ret=1 state 45 | _arguments \ 46 | ':subcommand:->subcommand' \ 47 | '*:: :->subcmds' && ret=0 48 | 49 | case $state in 50 | subcommand) 51 | subcommands=( 52 | "build:build all Elisp files in the files directive" 53 | "clean-elc:remove all byte compiled Elisp files in the files directive" 54 | "exec:execute command with correct 'exec-path' and 'load-path'" 55 | "exec-path:print 'exec-path' for all packages and dependencies" 56 | "files:print list of files specified in the files directive" 57 | "help:display usage information or documentation for specified command" 58 | "info:show info about the current package" 59 | "init:initialize the current directory with a Cask-file" 60 | "install:install all packages specified in the Cask-file" 61 | "link:manage links" 62 | "list:list dependencies" 63 | "load-path:print 'load-path' for all packages and dependencies" 64 | "outdated:print list of outdated packages" 65 | "package:build package and put in specified directory (default: dist)" 66 | "package-directory:print current package installation directory" 67 | "path:print 'exec-path' for all packages and dependencies" 68 | "pkg-file:write a 'define-package' file" 69 | "update:update package version" 70 | "upgrade-cask:upgrade Cask itself and its dependencies" 71 | "upgrade:upgrade Cask itself and its dependencies" 72 | "version:print program version" 73 | ) 74 | _describe -t subcommands 'cask subcommands' subcommands && ret=0 75 | esac 76 | 77 | case "$words[1]" in 78 | init) 79 | _arguments \ 80 | '(--dev)--dev[Run in dev mode]' && ret=0 ;; 81 | exec) 82 | _generic 83 | ;; 84 | esac 85 | 86 | return ret 87 | } 88 | 89 | _cask "$@" 90 | -------------------------------------------------------------------------------- /src/_chatblade: -------------------------------------------------------------------------------- 1 | #compdef chatblade 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for chatblade (https://github.com/npiv/chatblade) 7 | # 8 | # ------------------------------------------------------------------------------ 9 | # Authors 10 | # ------- 11 | # 12 | # * Johannes Bittner (https://github.com/johannes87) 13 | # 14 | # ------------------------------------------------------------------------------ 15 | 16 | _chatblade() { 17 | local -a args 18 | local context state state_descr line 19 | typeset -A opt_args 20 | 21 | args+=( 22 | '(- *)'{-h,--help}'[show this help message and exit]' 23 | '--openai-api-key[the OpenAI API key can also be set as env variable OPENAI_API_KEY]:key' 24 | '--temperature[temperature (openai setting)]:temperature' 25 | '(-c --chat-gpt)'{-c,--chat-gpt}'[chat GPT model 3.5/4 shorthand or full qualified model name, can also be set via env variable OPENAI_API_MODEL]:chat GPT model:(3.5 4)' 26 | '(-i --interactive)'{-i,--interactive}'[start an interactive chat session. This will implicitly continue the conversation]' 27 | '(-s --stream)'{-s,--stream}'[Stream the incoming text to the terminal]' 28 | '(-t --tokens)'{-t,--tokens}'[display what *would* be sent, how many tokens, and estimated costs]' 29 | '(-p --prompt-file)'{-p,--prompt-file}'[prompt name - will load the prompt with that name at ~/.config/chatblade/name or a path to a file]:prompt file:_files' 30 | '(-e --extract)'{-e,--extract}'[extract content from response if possible (either json or code block)]' 31 | '(-r --raw)'{-r,--raw}'[print session as pure text, dont pretty print or format]' 32 | '(-n --no-format)'{-n,--no-format}'[do not add pretty print formatting to output]' 33 | '(-o --only)'{-o,--only}'[Only display the response, omit query]' 34 | '--theme[Set the theme for syntax highlighting see https://pygments.org/styles/, can also be set with CHATBLADE_THEME]:theme:_values "theme" default emacs friendly manni monokai' 35 | '(-l --last)'{-l,--last}'[alias for -S last, the default session if none is specified]' 36 | '(-S --session)'{-S,--session}'[initiate or continue named session]:session:->sessions' 37 | '--session-list[list sessions]' 38 | '--session-path[show path to session file]' 39 | '--session-dump[dump session to stdout]' 40 | '--session-delete[delete session]' 41 | '--session-rename[rename session]:new session:->sessions' 42 | ) 43 | 44 | _arguments -s $args 45 | 46 | case $state in 47 | (sessions) 48 | local -a sessions 49 | sessions=("${(@f)$(chatblade --session-list)}") 50 | _describe 'session' sessions 51 | ;; 52 | esac 53 | } 54 | 55 | _chatblade 56 | 57 | # Local Variables: 58 | # mode: Shell-Script 59 | # sh-indentation: 2 60 | # indent-tabs-mode: nil 61 | # sh-basic-offset: 2 62 | # End: 63 | # vim: ft=zsh sw=2 ts=2 et 64 | -------------------------------------------------------------------------------- /src/_choc: -------------------------------------------------------------------------------- 1 | #compdef choc 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2012 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for choc (https://chocolatapp.com/) 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Nicholas Penree (https://github.com/drudge) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | local curcontext="$curcontext" state line ret=1 42 | typeset -A opt_args 43 | 44 | _arguments -C \ 45 | '(-a --async)'{-a,--async}'[do not wait for the user to close the file in Chocolat]' \ 46 | '(-w --wait)'{-w,--wait}'[wait for file to be closed by Chocolat]' \ 47 | '(-n --no-reactivation)'{-n,--no-reactivation}'[after editing with -w, do not reactivate the calling app]' \ 48 | '(-h --help)'{-h,--help}'[show help information]' \ 49 | '(-v --version)'{-v,--version}'[print version information]' \ 50 | '*:script or directory:_files' && ret=0 51 | 52 | return ret 53 | 54 | # Local Variables: 55 | # mode: Shell-Script 56 | # sh-indentation: 2 57 | # indent-tabs-mode: nil 58 | # sh-basic-offset: 2 59 | # End: 60 | # vim: ft=zsh sw=2 ts=2 et 61 | -------------------------------------------------------------------------------- /src/_clang-check: -------------------------------------------------------------------------------- 1 | #compdef clang-check 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2022 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for clang-check v20.1.2 (https://clang.llvm.org/docs/ClangCheck.html) 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Shohei Yoshida (https://github.com/syohex) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | _arguments \ 38 | '(- *)--help[Display available options]' \ 39 | '(- *)--help-hidden[Display available more options]' \ 40 | '(- *)--help-list[Display list of available options]' \ 41 | '(- *)--help-list-hidden[Display list of more available options]' \ 42 | '(- *)--version[Display the version of this program]' \ 43 | '--analyze[Run static analysis engine]' \ 44 | '--analyzer-output-path=[Write output to file]: :_files' \ 45 | '--ast-dump[Build ASTs and then debug dump them]' \ 46 | '--ast-dump-filter=[Use with -ast-dump or -ast-print to dump/print only AST declaration nodes having a certain substring]:string' \ 47 | '--ast-list[Build ASTs and print the list of declaration node qualified names]' \ 48 | '--ast-print[Build ASTs and then pretty-print them]' \ 49 | '*--extra-arg=[Additional argument to append to the compiler command line]:arg' \ 50 | '*--extra-arg-before=[Additional argument to prepend to the compiler command line]:arg' \ 51 | '--fix-what-you-can[Apply fix-it advice even in the presence of unfixable errors]' \ 52 | '--fixit[Apply fix-it advice to the input source]' \ 53 | '-p[Build directory where compile_commands.json is]: :_files -/' \ 54 | '--print-all-options[Print all option values after command line parsing]' \ 55 | '--print-options[Print non-default options after command line parsing]' \ 56 | '--syntax-tree-dump[dump the syntax tree]' \ 57 | '--tokens-dump[dump the preprocessed tokens]' \ 58 | '*: :_files' 59 | 60 | # Local Variables: 61 | # mode: Shell-Script 62 | # sh-indentation: 2 63 | # indent-tabs-mode: nil 64 | # sh-basic-offset: 2 65 | # End: 66 | # vim: ft=zsh sw=2 ts=2 et 67 | -------------------------------------------------------------------------------- /src/_clang-format: -------------------------------------------------------------------------------- 1 | #compdef clang-format 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2022 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for clang-format v20.1.2 (https://clang.llvm.org/docs/ClangFormat.html) 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Shohei Yoshida (https://github.com/syohex) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | local -a styles=(LLVM GNU Google Chromium Microsoft) 38 | 39 | _arguments \ 40 | '(- *)--help[Display available options]' \ 41 | '(- *)--help-hidden[Display available more options]' \ 42 | '(- *)--help-list[Display list of available options]' \ 43 | '(- *)--help-list-hidden[Display list of more available options]' \ 44 | '--Wclang-format-violations[Warnings about individual formatting changes needed]' \ 45 | '--Werror=[If set, changes formatting warnings to errors]' \ 46 | '*--Wno-error=[If set, do not error out on the specified warning type]:warn' \ 47 | '--assume-filename=[Set filename used to determine the language and to find .clang-format file]: :_files' \ 48 | '--cursor=[The position of the cursor when invoking clang-format from an editor integration]:pos' \ 49 | '(-n --dry-run)'{-n,--dry-run}'[If set, do not actually make the formatting changes]' \ 50 | '--dump-config[Dump configuration options to stdout and exit]' \ 51 | '--fail-on-incomplete-format[If set, fail with exit code 1 on incomplete format]' \ 52 | '--fallback-style=[The name of the predefined style used as a fallback]: :'"($styles)" \ 53 | '--ferror-limit=[Set the maximum number of clang-format errors to emit before stopping]:limit' \ 54 | '*--files=[Provide a list of files to run clang-format]: :_files' \ 55 | '--fno-color-diagnostics[If set, not to print diagnostics in color]' \ 56 | '-i[Inplace edit files, if specified]' \ 57 | '--length=[Format a range of this length(in bytes)]:bytes' \ 58 | '--lines=[format a range of lines]:format' \ 59 | '--list-ignored[List ignored files]' \ 60 | '--offset=[Format a range starting at this byte offset]' \ 61 | '--output-replacements-xml[Output replacements as XML]' \ 62 | '--print-all-options[Print all option values after command line parsing]' \ 63 | '--print-options[Print non default options after command line parsing]' \ 64 | '--qualifier-alignment=[If set, overrides the qualifier alignment style determined by the QualifierAlignment style flag]' \ 65 | '--sort-includes[If set, overrides the include sorting behavior determined by the SortIncludes style flag]' \ 66 | '--style=[Set coding style]: :'"($styles)" \ 67 | '--verbose[If set, show the list of processed files]' \ 68 | '(- *)--version[Display the version of this program]' \ 69 | '*: :_files' 70 | 71 | # Local Variables: 72 | # mode: Shell-Script 73 | # sh-indentation: 2 74 | # indent-tabs-mode: nil 75 | # sh-basic-offset: 2 76 | # End: 77 | # vim: ft=zsh sw=2 ts=2 et 78 | -------------------------------------------------------------------------------- /src/_coffee: -------------------------------------------------------------------------------- 1 | #compdef coffee 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for Coffee.js v2.7.0 (https://coffeescript.org/) 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Mario Fernandez (https://github.com/sirech) 38 | # * Dong Weiming (https://github.com/dongweiming) 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | local curcontext="$curcontext" state line ret=1 43 | typeset -A opt_args 44 | 45 | _arguments -s -S \ 46 | '--ast[generate an abstract syntax tree of nodes]' \ 47 | '(-b --bare)'{-b,--bare}'[compile without a top-level function wrapper]' \ 48 | '(-c --compile)'{-c,--compile}'[compile to JavaScript and save as .js files]' \ 49 | '(-e --eval)'{-e,--eval}'[pass a string from the command line as input]:Inline Script' \ 50 | '(- *)'{-h,--help}'[display this help message]' \ 51 | '(-i --interactive)'{-i,--interactive}'[run an interactive CoffeeScript REPL]' \ 52 | '(-j --join)'{-j,--join}'[concatenate the source CoffeeScript before compiling]: :_files -g "*.coffee"' \ 53 | '(-l --literate)'{-l,--literate}'[treat stdio as literate style coffeescript]' \ 54 | '(-m --map)'{-m,--map}'[generate source map and save as .js.map files]' \ 55 | '(-M --inline-map)'{-M,--inline-map}'[generate source map and include it directly in output]' \ 56 | '(-n --nodes)'{-n,--nodes}'[print out the parse tree that the parser produces]' \ 57 | '--nodejs[pass options directly to the "node" binary]' \ 58 | '(-o --output)'{-o,--output}'[set the output directory for compiled JavaScript]: :_files' \ 59 | '(-p --print --tokens)'{-p,--print}'[print out the compiled JavaScript]' \ 60 | '(-r --require)'\*{-r,--require}'[require the given module before eval or REPL]:module' \ 61 | '(-s --stdio)'{-s,--stdio}'[listen for and compile scripts over stdio]' \ 62 | '(-t --transpile)'{-t,--transpile}'[pipe generated JavaScript through Babel]' \ 63 | '(-p --print --tokens)--tokens[print out the tokens that the lexer/rewriter produce]' \ 64 | '(- *)'{-v,--version}'[display the version number]' \ 65 | '(-w --watch)'{-w,--watch}'[watch scripts for changes and rerun commands]' \ 66 | '*:script or directory:_files' && ret=0 67 | 68 | return ret 69 | 70 | # Local Variables: 71 | # mode: Shell-Script 72 | # sh-indentation: 2 73 | # indent-tabs-mode: nil 74 | # sh-basic-offset: 2 75 | # End: 76 | # vim: ft=zsh sw=2 ts=2 et 77 | -------------------------------------------------------------------------------- /src/_console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-users/zsh-completions/c29efd0bc3927ab25dc93ad4085d7143881b73f0/src/_console -------------------------------------------------------------------------------- /src/_dad: -------------------------------------------------------------------------------- 1 | #compdef dad 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for dad a command line manager of aria2 daemon. (https://github.com/baskerville/diana). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Jindřich Pilař (https://github.com/JindrichPilar) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | _dad() { 42 | typeset -A opt_args 43 | local context state line 44 | local curcontext="$curcontext" 45 | 46 | local -a commands=( 47 | "start:Start aria2c daemon" 48 | "stop:Stop aria2c daemon" 49 | ) 50 | 51 | _arguments -C \ 52 | '(- 1 *)'-h"[Show help and exit]" \ 53 | "-d[Set download dir]:download_dir:->val" \ 54 | "-s[Set secret token]:secret_token:->val" \ 55 | "-u[Set aria2c username]:username:->val" \ 56 | "-p[Set aria2c password]:password:->val" \ 57 | '1:cmd:->cmds' \ 58 | '*: : :->args' 59 | 60 | case "$state" in 61 | (cmds) 62 | _describe -t commands 'commands' commands 63 | ;; 64 | esac 65 | } 66 | 67 | _dad 68 | 69 | # Local Variables: 70 | # mode: Shell-Script 71 | # sh-indentation: 2 72 | # indent-tabs-mode: nil 73 | # sh-basic-offset: 2 74 | # End: 75 | # vim: ft=zsh sw=2 ts=2 et 76 | -------------------------------------------------------------------------------- /src/_dget: -------------------------------------------------------------------------------- 1 | #compdef dget 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for dget 2.22.2 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Kris Shannon 38 | # * Shohei YOSHIDA 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | _dget() { 43 | local context state line expl 44 | local -A opt_args 45 | 46 | _arguments -A "-*" \ 47 | '(- *)'{-h,--help}'[Show help message]' \ 48 | '(- *)'{-v,--version}'[Print license, copyright, and version information and exit]' \ 49 | '(-a --all)'{-a,--all}'[Package is a source package; download all binary packages]' \ 50 | '(--no-conf -b --backup)'{-b,--backup}'[Move files that would be overwritten to ./backup]' \ 51 | '(--no-conf -q --quiet)'{-q,--quiet}'[Suppress wget/curl output]' \ 52 | '(--no-conf -x --extract -d --download-only --build)'{-d,--download-only}'[Do not extract downloaded source]' \ 53 | '(--no-conf -x --extract -d --download-only --build)'{-x,--extract}'[Unpack downloaded source]' \ 54 | '(--no-conf -u --allow-unauthenticated)'{-u,--allow-unauthenticated}'[Make no attempt to verify source package signature]' \ 55 | '(--no-conf -x --extract -d --download-only --build)--build[Build package with dpkg-buildpackage after download]' \ 56 | '(--no-conf)--path[Check this directory in addition to the apt archive]:DIR:_files -/' \ 57 | '(--no-conf --insecure)--insecure[Do not check SSL certificates when downloading]' \ 58 | '(--no-conf --no-cache)--no-cache[Disable server-side HTTP cache]' \ 59 | "(--no-conf)--no-conf[Don't read devscripts config files]" \ 60 | '(-)*:debian package or URL: _alternative "_deb_packages available" "_urls"' 61 | } 62 | 63 | _dget "$@" 64 | 65 | # Local Variables: 66 | # mode: Shell-Script 67 | # sh-indentation: 2 68 | # indent-tabs-mode: nil 69 | # sh-basic-offset: 2 70 | # End: 71 | # vim: ft=zsh sw=2 ts=2 et 72 | -------------------------------------------------------------------------------- /src/_dhcpcd: -------------------------------------------------------------------------------- 1 | #compdef dhcpcd 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for dhcpcd 9.4.1 (http://roy.marples.name/projects/dhcpcd/) 7 | # 8 | # ------------------------------------------------------------------------------ 9 | # Authors 10 | # ------- 11 | # 12 | # * Julien Nicoulaud 13 | # 14 | # ------------------------------------------------------------------------------ 15 | 16 | _arguments \ 17 | '(-b --background)'{-b,--background}'[Background immediately]' \ 18 | '(-c --script)'{-c,--script}'[Use this script instead of the default]: :_files' \ 19 | '(-D --duid)'{-d,--duid}'[Use a DHCP Unique Identifier]:id' \ 20 | '(-d --debug)'{-d,--debug}'[Echo debug messages to the stderr and syslog]' \ 21 | '(-E --lastlease)'{-E,--lastlease}'[If dhcpcd cannot obtain a lease, then try to use the last lease acquired for the interface]' \ 22 | '--lastleaseextend[Same as the -E/--lastlease, but the lease will be retained even if it expires]' \ 23 | \*{-e,--env}'[Push value to the environment for use in dhcpcd-run-hooks(8)]:env' \ 24 | '(-g --reconfigure)'{-g,--reconfigure}'[dhcpcd will re-apply IP address, routing and run dhcpcd-run-hooks(8) for each interface]' \ 25 | '(-F --fqdn)'{-F,--fqdn}'[Requests that the DHCP server updates DNS using FQDN instead of just a hostname]:fqdn' \ 26 | '(-f --config)'{-f,--config}'[Specify a config to load instead of default]: :_files' \ 27 | '(-h --hostname)'{-h,--hostname}'[Sends hostname to the DHCP server so it can be registered in DNS]:hostname' \ 28 | '(-I --clientid)'{-I,--clientid}'[Send the clientid]:clientid' \ 29 | '(-i --vendorclassid)'{-i,--vendorclassid}'[Override the DHCPv4 venderclassid field sent]:vendorclassid' \ 30 | '(-j --logfile)'{-j,--logfile}'[Writes to the specified logfile]: :_files' \ 31 | \*{-k,--release}'[Release its lease and de-configure the interface regardless of -p, --persistent option]: :_net_interfaces' \ 32 | '(-l --leasetime)'{-l,--leasetime}'[Request a lease time of seconds. -1 represents an infinite lease time]:seconds' \ 33 | '(-M --manager)'{-M,--manager}'[Start dhcpcd in Manager mode even if only one interface specified on the command line]' \ 34 | '(-m --metric)'{-m,--metric}'[Metrics are used to prefer an interface over another one, lowest wins]:metric' \ 35 | \*{-n,--rebind}'[Notifies dhcpcd to reload its configuration and rebind the specified interface]: :_net_interfaces' \ 36 | \*{-N,--renew}'[Notifies dhcpcd to renew existing addresses on the specified interface]: :_net_interfaces' \ 37 | \*{-o,--option}'[Request the DHCP option variable for use in dhcpcd-run-hooks]:option' \ 38 | '(-p --persistent)'{-p,--persistent}"[Don't de-configure the interface and configuration at exit]" \ 39 | '(-r --request)'{-r,--request}'[Request the address in the DHCP DISCOVER message]:address' \ 40 | '(-s --inform)'{-s,--inform}'[Behaves exactly like -r, but sends a DHCP inform instead of a request]:address' \ 41 | '--inform6[Performs a DHCPv6 Information Request]' \ 42 | \*{-S,--static}'[Configures a static DHCP value]:value' \ 43 | '(-t --timeout)'{-t,--timeout}'[Timeout after seconds]:seconds' \ 44 | '(-u --userclass)'{-u,--userclass}'[Tags the DHCPv4 message with the userclass class]:class' \ 45 | '(-v --vendor)'{-v,--vendor}'[Add an encapsulated vendor option]:vendor' \ 46 | '(- *)--version[Display both program version and copyright information]' \ 47 | '-w[Wait for an address to be assigned before forking to the background]' \ 48 | '--waitip=[Wait for an address to assigned before forking to the background]: :(4 6)' \ 49 | \*{-x,--exit}'[This will signal an existing dhcpcd process running on the interface to exit]: :_net_interfaces' \ 50 | '(-y --reboot)'{-y,--reboot}'[Allow reboot seconds before moving to the discover phase if we have an old lease to use]:seconds' \ 51 | '1:network interface:_net_interfaces' 52 | 53 | # Local Variables: 54 | # mode: Shell-Script 55 | # sh-indentation: 2 56 | # indent-tabs-mode: nil 57 | # sh-basic-offset: 2 58 | # End: 59 | # vim: ft=zsh sw=2 ts=2 et 60 | -------------------------------------------------------------------------------- /src/_do-release-upgrade: -------------------------------------------------------------------------------- 1 | #compdef do-release-upgrade 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for do-release-upgrade 23.10.10 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Shohei Yoshida (https://github.com/syohex) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | _arguments \ 38 | '(- *)'{-h,--help}'[Show this help message and exit]' \ 39 | '(- *)'{-v,--version}'[Show version and exit]' \ 40 | '(-d --devel-release)'{-d,--devel-release}'[Upgrade to the development release]' \ 41 | '--data-dir=[Directory that contains the data files]:dir:_files -/' \ 42 | '(-p --proposed)'{-p,--proposed}'[Try upgrading to the latest release using the upgrade from \$distro-proposed]' \ 43 | '(-m --mode)'{-m,--mode=}'[Run in a special upgrade mode]:mode:(desktop server)' \ 44 | '(-f --frontend)'{-f,--frontend}'[Run the specified frontend]:frontend' \ 45 | '(- *)--check-dist-upgrade-only[Check only if a new distribution release is available]' \ 46 | '--allow-third-party[Try the upgrade with third party mirrors and repositories]' \ 47 | '(-q --quiet)'{-q,--quiet}'[Quiet mode]' \ 48 | \*{-e,--env=}'[A comma-separated list of environment variables]' 49 | 50 | # Local Variables: 51 | # mode: Shell-Script 52 | # sh-indentation: 2 53 | # indent-tabs-mode: nil 54 | # sh-basic-offset: 2 55 | # End: 56 | # vim: ft=zsh sw=2 ts=2 et 57 | -------------------------------------------------------------------------------- /src/_docpad: -------------------------------------------------------------------------------- 1 | #compdef docpad 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for docpad v6.38.2 (https://github.com/bevry/docpad). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Changwoo Park (https://github.com/pismute) 38 | # * Shohei Yoshida (https://github.com/syohex) 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | _docpad_subcommands() { 43 | local -a commands=( 44 | "run:run docpad on your project" 45 | "init:initialize your project" 46 | "generate:(re)generates your project" 47 | "render:render the file at and output its results to stdout" 48 | "watch:watches your project for changes, and (re)generates whenever a change is made" 49 | "clean:ensure everything is cleaned correctly (will remove your out directory)" 50 | "update:update your local DocPad and plugin installations to their latest compatible version" 51 | "upgrade:update your local DocPad and plugin installations to their latest compatible version" 52 | "install:install plugins" 53 | "uninstall:uninstall a plugin" 54 | "info:display the information about your docpad instance" 55 | ) 56 | 57 | _describe -t commands 'command' commands "$@" 58 | } 59 | 60 | _docpad() { 61 | local ret=1 62 | 63 | _arguments \ 64 | '--outpath[a custom directory to place the rendered project]: :_files -/' \ 65 | '--config[a custom configuration file to load in]: :_files' \ 66 | '--env[the environment name to use for this instance, multiple names can be separated with a comma]' \ 67 | '--log[the rfc log level to display]:level' \ 68 | '(-v --verbose)'{-v,--verbose}'[set log level to 7]' \ 69 | '(-d --debug)'{-d,--debug}'[output a log file]' \ 70 | '--global[whether or not we should just fire global installation of docpad]' \ 71 | '(--color --colour)'{--color,--colour}'[use color terminal output(default: true)]' \ 72 | '--silent[do not write anything that is not essential]' \ 73 | '--progress[output the progress as it occurs(default: true)]' \ 74 | '--version[show version]' \ 75 | '(- *)'{-h,--help}'[output usage information]'\ 76 | '1: :_docpad_subcommands'\ 77 | '*:: :_files' && ret=0 78 | 79 | return ret 80 | } 81 | 82 | _docpad "$@" 83 | 84 | # Local Variables: 85 | # mode: Shell-Script 86 | # sh-indentation: 2 87 | # indent-tabs-mode: nil 88 | # sh-basic-offset: 2 89 | # End: 90 | # vim: ft=zsh sw=2 ts=2 et 91 | -------------------------------------------------------------------------------- /src/_ecdsautil: -------------------------------------------------------------------------------- 1 | #compdef ecdsautil 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for ecdsaultils v0.4.0 (https://github.com/freifunk-gluon/ecdsautils) 7 | # 8 | # ------------------------------------------------------------------------------ 9 | # Authors 10 | # ------- 11 | # 12 | # * Robinhuett 13 | # 14 | # ------------------------------------------------------------------------------ 15 | 16 | _ecdsautil_args() { 17 | case $words[1] in 18 | (sign) 19 | _arguments '1:somefile:_files' 20 | ;; 21 | (verify) 22 | _arguments '-s[signature]:secret:_files' '-p[publickey]:pubkey:_files' 23 | '-n[signaturecount]:signaturecount:""' ':file:_files' 24 | ;; 25 | esac 26 | } 27 | 28 | _ecdsautil() { 29 | local -a commands 30 | 31 | commands=( 32 | "help:Show help" 33 | "generate-key:generate a new secret on stdout" 34 | "show-key:output public key of secret read from stdin" 35 | "sign:sign file" 36 | "verify:verify signature of file" 37 | ) 38 | 39 | _arguments -C \ 40 | '1:cmd:->cmds' \ 41 | '*:: :->args' \ 42 | 43 | case "$state" in 44 | (cmds) 45 | _describe -t commands 'commands' commands 46 | ;; 47 | (*) 48 | _ecdsautil_args 49 | ;; 50 | esac 51 | } 52 | 53 | _ecdsautil "$@" 54 | -------------------------------------------------------------------------------- /src/_emacsclient: -------------------------------------------------------------------------------- 1 | #compdef emacsclient 2 | # 3 | # ------------------------------------------------------------------------------ 4 | # Copyright (c) 2022 Github zsh-users - https://github.com/zsh-users 5 | # All rights reserved. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining 8 | # a copy of this software and associated documentation files (the 9 | # "Software"), to deal in the Software without restriction, including 10 | # without limitation the rights to use, copy, modify, merge, publish, 11 | # distribute, sublicense, and/or sell copies of the Software, and to 12 | # permit persons to whom the Software is furnished to do so, subject to 13 | # the following conditions: 14 | # 15 | # The above copyright notice and this permission notice shall be included 16 | # in all copies or substantial portions of the Software. 17 | # 18 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 21 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 22 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 23 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 | # OTHER DEALINGS IN THE SOFTWARE. 25 | # ------------------------------------------------------------------------------ 26 | # Description 27 | # ----------- 28 | # 29 | # Completion script for emacsclient 29 30 | # - https://www.gnu.org/software/emacs/manual/html_node/emacs/Invoking-emacsclient.html 31 | # 32 | # ------------------------------------------------------------------------------ 33 | # Authors 34 | # ------- 35 | # 36 | # * Shohei YOSHIDA (https://github.com/syohex) 37 | # 38 | # ------------------------------------------------------------------------------ 39 | 40 | _arguments -s -n : \ 41 | '(- *)'{-V,--version}'[Print version information and exit]' \ 42 | '(- *)'{-H,--help}'[Print this usage information message and exit]' \ 43 | '(-nw -t --tty)'{-nw,-t,--tty}'[Open a new Emacs frame on the current terminal]' \ 44 | '(-c --create-frame)'{-c,--create-frame}'[Create a new frame instead of trying to use the current Emacs frame]' \ 45 | '(-r --reuse-frame)'{-r,--reuse-frame}'[Create a new frame if none exists, otherwise use the current Emacs frame]' \ 46 | '(-F --frame-parameters)'{-F,--frame-parameters=}'[Set the parameters of a new frame]:alist' \ 47 | '(-e --eval)'{-e,--eval}'[Evaluate as Emacs Lisp expressions]' \ 48 | '(-n --no-wait)'{-n,--no-wait}'[Returns immediately without waiting for finish]' \ 49 | '(-w --timeout)'{-w,--timeout=}'[Seconds to wait before timing out]:seconds' \ 50 | '(-q --quiet)'{-q,--quiet}"[Don't display messages on success]" \ 51 | '(-u --suppress-output)'{-u,--suppress-output}"[Don't display return values from the server]" \ 52 | '(-d --display)'{-d,--display=}'[Tell the server to display the files on the given display]:display:_x_display' \ 53 | '--parent-id=[Open in parent window ID, via XEmbed]' \ 54 | '(-s --socket-name)'{-s,--socket-name=}'[Set filename of the UNIX socket for communication]: :_files' \ 55 | '(-f --server-file)'{-f,--server-file=}'[Set filename of the TCP authentication file]: :_files' \ 56 | '(-a --alternate-editor)'{-a,--alternate-editor=}'[Editor to fallback to if the server is not running if EDITOR is the empty string]:editor:_files' \ 57 | '(-T --tramp)'{-T,--tramp=}'[PREFIX to prepend to filenames sent by emacsclient for locating files remotely via Tramp]:prefix' \ 58 | '*: :_files' 59 | 60 | # Local Variables: 61 | # mode: Shell-Script 62 | # sh-indentation: 2 63 | # indent-tabs-mode: nil 64 | # sh-basic-offset: 2 65 | # End: 66 | # vim: ft=zsh sw=2 ts=2 et 67 | -------------------------------------------------------------------------------- /src/_envdir: -------------------------------------------------------------------------------- 1 | #compdef envdir 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016, Github zsh-users (https://github.com/zsh-users) 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | # ARE DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY DIRECT, 21 | # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for envdir (https://github.com/jezdez/envdir). 32 | # It completes its few options and then a directory and command. 33 | # 34 | # ------------------------------------------------------------------------------ 35 | # Authors 36 | # ------- 37 | # 38 | # * Daniel Hahler 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | local -a args=( 43 | '(-h --help)'{-h+,--help}'[show this help message and exit]' 44 | '(-)'--version'[display version information and exit]' 45 | '(-)1:directory: _path_files -/' 46 | '(-)2:command: _command_names -e' 47 | '*::arguments: _precommand' 48 | ) 49 | _arguments -S $args 50 | 51 | # Local Variables: 52 | # mode: Shell-Script 53 | # sh-indentation: 2 54 | # indent-tabs-mode: nil 55 | # sh-basic-offset: 2 56 | # End: 57 | # vim: ft=zsh sw=2 ts=2 et 58 | -------------------------------------------------------------------------------- /src/_exportfs: -------------------------------------------------------------------------------- 1 | #compdef exportfs 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for nfs's exportfs - maintain table of exported NFS file systems. 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Timofey Titovets 38 | # 39 | # ------------------------------------------------------------------------------ 40 | _exportfs() { 41 | _values -w 'option' \ 42 | '(-i)-a[Export or unexport all directories]' \ 43 | '(-a -r -u)-i[Ignore the /etc/exports file and files under /etc/exports.d directory]' \ 44 | '(-i)-r[Reexport all directories]' \ 45 | '(-i)-u[Unexport one or more directories]' \ 46 | '-f[Flush everything out of export table]' \ 47 | '-o[option1,option2.. Specify a list of export options]' \ 48 | '-s[Display the current export list suitable for /etc/exports]' \ 49 | '-v[Be verbose]' 50 | } 51 | _exportfs "$@" 52 | -------------------------------------------------------------------------------- /src/_ffind: -------------------------------------------------------------------------------- 1 | #compdef ffind 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for ffind (https://github.com/jaimebuelta/ffind). 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Sergei Eremenko (https://github.com/SmartFinn) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | _arguments -C \ 38 | '(-h --help)'{-h,--help}'[show help message and exit]' \ 39 | '--version[show version number and exit]' \ 40 | '-p[match whole path, not only name of files]' \ 41 | '--nocolor[do not display color]' \ 42 | '--nosymlinks[do not follow symlinks]' \ 43 | '--hidden[do not ignore hidden directories]' \ 44 | '-c[force case sensitive]' \ 45 | '-i[force case insensitive]' \ 46 | '--delete[delete files found]' \ 47 | '--exec[execute the given command with the file found]:command:_command_names' \ 48 | '--module[execute the given module with the file found]:module_name args:' \ 49 | '--command[execute the given python program with the file found]:program:_files' \ 50 | '--ignore-vcs[ignore version control system files and directories]' \ 51 | '-f[experimental fuzzy search]' \ 52 | '--return-results[for testing purposes only]' \ 53 | '1:directory to search:_path_files -/' \ 54 | '*:filepattern:' 55 | 56 | # Local Variables: 57 | # mode: Shell-Script 58 | # sh-indentation: 2 59 | # indent-tabs-mode: nil 60 | # sh-basic-offset: 2 61 | # End: 62 | # vim: ft=zsh sw=2 ts=2 et 63 | -------------------------------------------------------------------------------- /src/_gas: -------------------------------------------------------------------------------- 1 | #compdef gas 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for gas (https://github.com/walle/gas). 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Fredrik Wallgren 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | local curcontext="$curcontext" state line cmds ret=1 38 | 39 | _arguments -C \ 40 | '(- 1 *)'{-v,--version}'[display version information]' \ 41 | '(-h|--help)'{-h,--help}'[show help information]' \ 42 | '1: :->cmds' \ 43 | '*: :->args' && ret=0 44 | 45 | case "$state" in 46 | (cmds) 47 | cmds=( 48 | "version:Prints Gas's version" 49 | "use:Uses author" 50 | "show:Shows your current user" 51 | "list:Lists your authors" 52 | "import:Imports current user to gasconfig" 53 | "help:Describe available tasks or one specific task" 54 | "delete:Deletes author" 55 | "add:Adds author to gasconfig" 56 | ) 57 | _describe -t commands 'gas command' cmds && ret=0 58 | ;; 59 | (args) 60 | case "$line[1]" in 61 | (use|delete) 62 | _values -S , 'authors' $(cat ~/.gas | sed -n -e 's/^\[\(.*\)\]/\1/p') && ret=0 63 | ;; 64 | esac 65 | ;; 66 | esac 67 | 68 | return ret 69 | 70 | -------------------------------------------------------------------------------- /src/_git-pulls: -------------------------------------------------------------------------------- 1 | #compdef git-pulls 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for git-pulls 0.3.1 (https://git-pulls.com/schacon/git-pulls). 7 | # 8 | # ------------------------------------------------------------------------------ 9 | # Authors 10 | # ------- 11 | # 12 | # * Julien Nicoulaud (https://github.com/nicoulaj) 13 | # 14 | # ------------------------------------------------------------------------------ 15 | 16 | 17 | _git-pulls() { 18 | typeset -A opt_args 19 | local context state line curcontext="$curcontext" 20 | 21 | local ret=1 22 | 23 | _arguments -C \ 24 | '(- 1 *)--help[show usage]' \ 25 | '1:cmd:->cmds' \ 26 | '*::arg:->args' \ 27 | && ret=0 28 | 29 | case "$state" in 30 | (cmds) 31 | local commands; commands=( 32 | 'update:update pull requests list' 33 | 'list:list pull requests' 34 | 'show:show pull request' 35 | 'browse:open pull request in a web browser' 36 | 'merge:merge pull request' 37 | ) 38 | _describe -t commands 'command' commands && ret=0 39 | ;; 40 | (args) 41 | curcontext="${curcontext%:*:*}:git-pulls-cmd-$words[1]:" 42 | case $words[1] in 43 | (update) 44 | _message 'no more arguments' && ret=0 45 | ;; 46 | (list) 47 | _arguments \ 48 | '--reverse[list in reverse order]' \ 49 | && ret=0 50 | ;; 51 | (show) 52 | _arguments \ 53 | '1: :_git-pulls_pull_requests_numbers' \ 54 | '--full[use verbose output]' \ 55 | && ret=0 56 | ;; 57 | (browse|merge) 58 | _arguments \ 59 | '1: :_git-pulls_pull_requests_numbers' \ 60 | && ret=0 61 | ;; 62 | esac 63 | ;; 64 | esac 65 | 66 | return ret 67 | } 68 | 69 | (( $+functions[_git-pulls_pull_requests_numbers] )) || 70 | _git-pulls_pull_requests_numbers() { 71 | local pull_requests; pull_requests=(${${${(M)${(f)"$(_call_program users $service list)"}:#[[:digit:]]##[[:space:]]*}//:/\\:}/[[:space:]]##/:}) 72 | _describe -t pull-request-numbers 'pull request number' pull_requests "$@" 73 | } 74 | 75 | _git-pulls "$@" 76 | 77 | # Local Variables: 78 | # mode: Shell-Script 79 | # sh-indentation: 2 80 | # indent-tabs-mode: nil 81 | # sh-basic-offset: 2 82 | # End: 83 | # vim: ft=zsh sw=2 ts=2 et 84 | -------------------------------------------------------------------------------- /src/_git-revise: -------------------------------------------------------------------------------- 1 | #compdef git-revise 2 | #description update, split and rearrange commits 3 | # ------------------------------------------------------------------------------ 4 | # Description 5 | # ----------- 6 | # 7 | # Completion script for git-revise 0.7.0 8 | # (https://github.com/mystor/git-revise/). 9 | # 10 | # ------------------------------------------------------------------------------ 11 | # Authors 12 | # ------- 13 | # 14 | # * Hannu Hartikainen (https://github.com/dancek) 15 | # 16 | # ------------------------------------------------------------------------------ 17 | 18 | __git-revise_commits() { 19 | local -a commits 20 | if git rev-parse --is-inside-work-tree 1>/dev/null 2>/dev/null; then 21 | commits=(${(f)"$(git log -20 --pretty=format:'%h:%d %s' | sed 's/: /:/')"}) 22 | _describe -V 'commit' commits 23 | else 24 | _message 'not a git repository' 25 | fi 26 | } 27 | 28 | __git-revise_branches() { 29 | local -a branches 30 | if git rev-parse --is-inside-work-tree 1>/dev/null 2>/dev/null; then 31 | branches=(${(f)"$(git for-each-ref --format='%(refname:short)' refs/heads/)"}) 32 | _describe 'branch' branches 33 | else 34 | _message 'not a git repository' 35 | fi 36 | } 37 | 38 | _git-revise() { 39 | local curcontext="$curcontext" ret=1 40 | 41 | _arguments -s \ 42 | '(- :)'{-h,--help}'[show help message and exit]' \ 43 | '--root[revise starting at the root commit]' \ 44 | '--ref=[reference to update]: :__git-revise_branches' \ 45 | '--reauthor[reset the author of the targeted commit]' \ 46 | '(- :)--version[show version number and exit]' \ 47 | '(--edit -e)'{--edit,-e}'[edit commit message of targeted commit(s)]' \ 48 | '(--no-autosquash)--autosquash[automatically apply fixup! and squash! commits to their targets]' \ 49 | '(--autosquash)--no-autosquash[force disable revise.autoSquash behaviour]' \ 50 | '(--all -a)--no-index[ignore the index while rewriting history]' \ 51 | '(--no-index --all -a)'{--all,-a}'[stage all tracked files before running]' \ 52 | '(--interactive -i --message -m --cut -c --patch -p)'{--patch,-p}'[interactively stage hunks before running]' \ 53 | '(--interactive -i --message -m --cut -c --patch -p)'{--interactive,-i}'[interactively edit commit stack]' \ 54 | '(--interactive -i --message -m --cut -c --patch -p)'{--message,-m}'[specify commit message on command line]:MESSAGE:()' \ 55 | '(--interactive -i --message -m --cut -c --patch -p)'{--cut,-c}'[interactively cut a commit into two smaller commits]' \ 56 | '(--gpg-sign -S --no-gpg-sign)'{--gpg-sign,-S}'[GPG sign commits]' \ 57 | '(--gpg-sign -S --no-gpg-sign)--no-gpg-sign[do not GPG sign commits]' \ 58 | '1: :__git-revise_commits' && ret=0 59 | 60 | return $ret 61 | } 62 | 63 | _git-revise "$@" 64 | 65 | # Local Variables: 66 | # mode: Shell-Script 67 | # sh-indentation: 2 68 | # indent-tabs-mode: nil 69 | # sh-basic-offset: 2 70 | # End: 71 | # vim: ft=zsh sw=2 ts=2 et 72 | -------------------------------------------------------------------------------- /src/_git-wtf: -------------------------------------------------------------------------------- 1 | #compdef git-wtf 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for git-wtf, authored by 32 | # William Morgan (http://git-wt-commit.rubyforge.org/git-wtf) 33 | # 34 | # ------------------------------------------------------------------------------ 35 | # Authors 36 | # ------- 37 | # 38 | # * Mario Fernandez (https://github.com/sirech) 39 | # * Shohei YOSHIDA (https://github.com/syohex) 40 | # 41 | # ------------------------------------------------------------------------------ 42 | 43 | __git_wtf_branches() { 44 | local -a branches 45 | branches=(${(f)"$(git for-each-ref --format='%(refname:short)' refs/heads/)"}) 46 | _describe 'branch' branches 47 | } 48 | 49 | _arguments -w -C -s \ 50 | '(--long --short)'{-l,--long}'[include author info and date for each commit]' \ 51 | '(--long --short)'{-s,--short}'[do not show commits]' \ 52 | '(--all)'{-a,--all}'[show all branches across all remote repos, not just those from origin]' \ 53 | '(--all-commits)'{-A,--all-commits}'[show all commits, not just the first 5]' \ 54 | '(--key)'{-k,--key}'[show key]' \ 55 | '(--relations)'{-r,--relations}'[show relation to features / integration branches]' \ 56 | '(--dump-config)--dump-config[print out current configuration and exit]' \ 57 | '*: :__git_wtf_branches' 58 | 59 | # Local Variables: 60 | # mode: Shell-Script 61 | # sh-indentation: 2 62 | # indent-tabs-mode: nil 63 | # sh-basic-offset: 2 64 | # End: 65 | # vim: ft=zsh sw=2 ts=2 et 66 | -------------------------------------------------------------------------------- /src/_google: -------------------------------------------------------------------------------- 1 | #compdef google 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for googlecl (https://code.google.com/p/googlecl/) 32 | # 33 | # Source: https://raw.github.com/dadrc/zsh-cfg/master/completions/_google 34 | # 35 | # ------------------------------------------------------------------------------ 36 | # Authors 37 | # ------- 38 | # 39 | # * dadrc (https://github.com/dadrc) 40 | # * Ben O'Hara (https://github.com/benohara) 41 | # 42 | # ------------------------------------------------------------------------------ 43 | 44 | _google() { 45 | # init variables 46 | local curcontext="$curcontext" state line 47 | typeset -A opt_args 48 | 49 | # init state 50 | _arguments \ 51 | '1: :->service'\ 52 | '2: :->task' 53 | 54 | case $state in 55 | service) 56 | _arguments '1:service:(picasa blogger youtube docs contacts calendar finance)' 57 | ;; 58 | *) 59 | case $words[2] in 60 | picasa) 61 | compadd "$@" get create list list-albums tag post delete 62 | ;; 63 | blogger) 64 | compadd "$@" post tag list delete 65 | ;; 66 | youtube) 67 | compadd "$@" post tag list delete 68 | ;; 69 | docs) 70 | compadd "$@" edit delete list upload get 71 | ;; 72 | contacts) 73 | compadd "$@" list list-groups add add-groups delete-groups delete 74 | ;; 75 | calendar) 76 | compadd "$@" add list today delete 77 | ;; 78 | finance) 79 | compadd "$@" list-txn delete-pos create-pos delete-txn create create-txn list list-pos delete 80 | ;; 81 | *) 82 | esac 83 | esac 84 | } 85 | 86 | _google "$@" 87 | 88 | # Local Variables: 89 | # mode: Shell-Script 90 | # sh-indentation: 2 91 | # indent-tabs-mode: nil 92 | # sh-basic-offset: 2 93 | # End: 94 | # vim: ft=zsh sw=2 ts=2 et 95 | -------------------------------------------------------------------------------- /src/_gpgconf: -------------------------------------------------------------------------------- 1 | #compdef gpgconf 2 | # Copyright (c) 2021 Github zsh-users - https://github.com/zsh-users 3 | # All rights reserved. 4 | # 5 | # Redistribution and use in source and binary forms, with or without 6 | # modification, are permitted provided that the following conditions are met: 7 | # * Redistributions of source code must retain the above copyright 8 | # notice, this list of conditions and the following disclaimer. 9 | # * Redistributions in binary form must reproduce the above copyright 10 | # notice, this list of conditions and the following disclaimer in the 11 | # documentation and/or other materials provided with the distribution. 12 | # * Neither the name of the zsh-users nor the 13 | # names of its contributors may be used to endorse or promote products 14 | # derived from this software without specific prior written permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 17 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 18 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 20 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 23 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | 27 | # Description: 28 | # Completions for gpgconf (configuration utility provided with GnuPG 29 | # ) 30 | # 31 | # Authors: 32 | # * "score" https://keybase.io/score_under 33 | 34 | _gpgconf_component() { 35 | local values=( 36 | "${(@f)$(gpgconf --list-components | awk -F: '{printf "%s[%s]\n", $1, $2}')}" 37 | ) 38 | if [ "${action[2]}" = all ]; then 39 | values+=('all[All daemon components]') 40 | fi 41 | 42 | _values 'component' "${(o)values[@]}" 43 | } 44 | 45 | _arguments \ 46 | '--help[print help text]' \ 47 | '--list-components[list all components]' \ 48 | '--check-programs[check all programs]' \ 49 | '--apply-defaults[apply global default values]' \ 50 | '--list-dirs[get the configuration directories for gpgconf]' \ 51 | '--list-config[list global configuration file]' \ 52 | '--check-config[check global configuration file]' \ 53 | '--query-swdb[query the software version database]' \ 54 | '--reload[reload all or a given component]:component:_gpgconf_component all' \ 55 | '--launch[launch a given component]:component:_gpgconf_component all' \ 56 | '--kill[kill a given component]:component:_gpgconf_component all' \ 57 | '--create-socketdir[create a directory for sockets below /run/user or /var/run/user]' \ 58 | '--remove-socketdir[remove a directory created with command --create-socketdir]' \ 59 | '--list-options[list options]:component:_gpgconf_component' \ 60 | '--change-options[change options]:component:_gpgconf_component' \ 61 | '--check-options[check options]:component:_gpgconf_component' \ 62 | '--apply-profile[update configuration files using the specified file]:configuration file:_path_files' \ 63 | '--status-fd[write status info to the specified file descriptor]:file descriptor' \ 64 | '--homedir[specify an alternative gnupg configuration home directory]:directory:_directories' \ 65 | '(-o --output)'{-o,--output}'[write output to the specified file]:output file:_path_files' \ 66 | '(-v --verbose)'{-v,--verbose}'[verbose]' \ 67 | '(-q --quiet)'{-q,--quiet}'[quiet]' \ 68 | '(-n --dry-run)'{-n,--dry-run}'[do not make any changes]' \ 69 | '(-r --runtime)'{-r,--runtime}'[activate changes at runtime, if possible]' 70 | 71 | # Local Variables: 72 | # mode: Shell-Script 73 | # sh-indentation: 2 74 | # indent-tabs-mode: nil 75 | # sh-basic-offset: 2 76 | # End: 77 | # vim: ft=zsh sw=2 ts=2 et 78 | -------------------------------------------------------------------------------- /src/_gtk-launch: -------------------------------------------------------------------------------- 1 | #compdef gtk-launch gtk4-launch 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for gtk-launch on gtk+-3.24.37, gtk4-launch-4.10.4 32 | # (https://www.gtk.org/). 33 | # 34 | # ------------------------------------------------------------------------------ 35 | # Authors 36 | # ------- 37 | # 38 | # * ncaq 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | _gtk-launch() { 43 | local ret=1 44 | 45 | if [[ $service == "gtk-launch" ]]; then 46 | _arguments -S -A "-*" \ 47 | '(- *)'{-h,--help}'[Show help options]' \ 48 | '(- *)'{-v,--version}'[Show program version]' \ 49 | '(- *)'--help-all'[Show all help options]' \ 50 | '(- *)'--help-gtk'[Show GTK+ Options]' \ 51 | '(- *)'--display='[X display to use]:display:_x_display' \ 52 | '--class=[Program class as used by the window manager]:class' \ 53 | '--name=[Program name as used by the window manager]:name' \ 54 | '--gtk-module=[Load additional GTK+ modules]:module' \ 55 | '--g-fatal-warnings[Make all warnings fatal]' \ 56 | '1: :_gtk-launch-apps' \ 57 | '*:: :_files' && ret=0 58 | else 59 | # gtk4-launch 60 | _arguments -S -A "-*" \ 61 | '(- *)'{-h,--help}'[Show help options]' \ 62 | '(- *)'{-v,--version}'[Show program version]' \ 63 | '1: :_gtk-launch-apps' \ 64 | '*:: :_files' && ret=0 65 | fi 66 | 67 | return ret 68 | } 69 | 70 | (( $+functions[_gtk-launch-apps] )) || 71 | _gtk-launch-apps() { 72 | local -a apps=(/usr/share/applications/*.desktop(:r:t)) 73 | _values 'applications' $apps 74 | } 75 | 76 | _gtk-launch "$@" 77 | 78 | # Local Variables: 79 | # mode: Shell-Script 80 | # sh-indentation: 2 81 | # indent-tabs-mode: nil 82 | # sh-basic-offset: 2 83 | # End: 84 | # vim: ft=zsh sw=2 ts=2 et 85 | -------------------------------------------------------------------------------- /src/_hello: -------------------------------------------------------------------------------- 1 | #compdef hello 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for GNU hello (https://www.gnu.org/software/hello/). 7 | # 8 | # ------------------------------------------------------------------------------ 9 | # Authors 10 | # ------- 11 | # 12 | # * Wu Zhenyu 13 | # 14 | # ------------------------------------------------------------------------------ 15 | 16 | _arguments -s '(- *)'{-h,--help}'[display this help and exit]' \ 17 | '(- *)'{-v,--version}'[display version information and exit]' \ 18 | {-t,--traditional}'[use traditional greeting]' \ 19 | {-g,--greeting=}'[use TEXT as the greeting message]:TEXT' 20 | -------------------------------------------------------------------------------- /src/_homestead: -------------------------------------------------------------------------------- 1 | #compdef homestead 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for homestead (http://laravel.com/docs/homestead). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * loranger (https://github.com/loranger) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | 42 | _homestead_get_command_list () { 43 | homestead --no-ansi | sed "1,/Available commands/d" | awk '/ [a-z]+/ { print $1 }' 44 | } 45 | 46 | _homestead () { 47 | if [ -f homestead ]; then 48 | compadd `_homestead_get_command_list` 49 | fi 50 | } 51 | 52 | compdef _homestead php homestead 53 | compdef _homestead homestead 54 | -------------------------------------------------------------------------------- /src/_include-what-you-use: -------------------------------------------------------------------------------- 1 | #compdef include-what-you-use iwyu 2 | 3 | # Copyright 2018 CERN for the benefit of the LHCb Collaboration. 4 | # All rights reserved. 5 | # 6 | # Developed by: 7 | # 8 | # CERN LBC group 9 | # 10 | # CERN 11 | # 12 | # https://home.web.cern.ch/ 13 | # 14 | # Permission is hereby granted, free of charge, to any person obtaining a copy 15 | # of this software and associated documentation files (the "Software"), to deal 16 | # with the Software without restriction, including without limitation the 17 | # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 18 | # sell copies of the Software, and to permit persons to whom the Software is 19 | # furnished to do so, subject to the following conditions: 20 | # 21 | # * Redistributions of source code must retain the above copyright notice, 22 | # this list of conditions and the following disclaimers. 23 | # 24 | # * Redistributions in binary form must reproduce the above copyright 25 | # notice, this list of conditions and the following disclaimers in the 26 | # documentation and/or other materials provided with the distribution. 27 | # 28 | # * Neither the names of the LBC group, CERN, nor the names of its 29 | # contributors may be used to endorse or promote products derived from 30 | # this Software without specific prior written permission. 31 | # 32 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 33 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 34 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 35 | # CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 36 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 37 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH 38 | # THE SOFTWARE. 39 | # 40 | # In applying this licence, CERN does not waive the privileges and immunities 41 | # granted to it by virtue of its status as an Intergovernmental Organization or 42 | # submit itself to any jurisdiction. 43 | # ------------------------------------------------------------------------------ 44 | # Description 45 | # ----------- 46 | # 47 | # Completion script for include-what-you-use 0.19 (https://github.com/include-what-you-use/include-what-you-use). 48 | # 49 | # ------------------------------------------------------------------------------ 50 | 51 | # TODO: 52 | # - prevent _iwyu_opts from running once the first clang option got passed 53 | 54 | _iwyu_opts() { 55 | _arguments \ 56 | '--check_also=[print iwyu-violation info for files matching the given glob pattern]:glob pattern:' \ 57 | '--keep=[tells iwyu to always keep these includes]:glob pattern' \ 58 | '*'"--mapping_file=[iwyu mapping file]:iwyu mapping file:_path_files -g '*(/) *.imp'" \ 59 | "--no_default_mappings[do not add iwyu's default mappings]" \ 60 | '--pch_in_code[mark the first include in a translation unit as a precompiled header]' \ 61 | '--prefix_header_includes=[what to do with command line includes]:command line include treatment:(add keep remove)' \ 62 | "--transitive_includes_only[do not suggest that a file add headers that aren't already visible]" \ 63 | '--max_line_length=[maximum line length for includes]:a number:' \ 64 | '--comment_style=[set verbosity of "why" comments to]:comment style:(none short long)' \ 65 | '--no_comments[do not add "why" comments]' \ 66 | '--no_fwd_decls[do not use forward declarations]' \ 67 | '--verbose=[the higher the level, the more output]:a number:' \ 68 | '--quoted_includes_first[when sorting includes, place quoted ones first]' \ 69 | '--cxx17ns[suggests the more concise syntax introduced in C++17]' \ 70 | '--error=-[exit with N(default: 1) for iwyu violations]::exit code' \ 71 | '--error_always=-[always exit with N (default: 1)]::exit code' \ 72 | '--debug=[debug flags]:flag' \ 73 | '--regex=[use specified regex dialect in iwyu]:dialect:(llvm ecmascript)' \ 74 | '*: :_files' 75 | } 76 | 77 | _alternative \ 78 | 'iwyu:iwyu_option:_iwyu_opts' \ 79 | 'gcc:gcc_option:_gcc' \ 80 | 81 | # Local Variables: 82 | # mode: Shell-Script 83 | # sh-indentation: 2 84 | # indent-tabs-mode: nil 85 | # sh-basic-offset: 2 86 | # End: 87 | # vim: ft=zsh sw=2 ts=2 et 88 | -------------------------------------------------------------------------------- /src/_jmeter: -------------------------------------------------------------------------------- 1 | #compdef jmeter 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for JMeter (https://jmeter.apache.org/). 7 | # 8 | # Status: incomplete 9 | # 10 | # ------------------------------------------------------------------------------ 11 | # Authors 12 | # ------- 13 | # 14 | # * Julien Nicoulaud 15 | # 16 | # ------------------------------------------------------------------------------ 17 | 18 | 19 | _arguments \ 20 | '(- 1 *)--?[print command line options and exit]' \ 21 | '(- 1 *)'{-h,--help}'[print usage information and exit]' \ 22 | '(- 1 *)'{-v,--version}'[print the version information and exit]' \ 23 | {-p,--propfile}'[the jmeter property file to use]:properties file:_files -g "*.properties"' \ 24 | '*'{-q,--addprop}'[additional property file(s)]:properties file:_files -g "*.properties"' \ 25 | {-t,--testfile}'[the jmeter test plan file to run]:JMeter test plan file:_files -g "*.jmx"' \ 26 | {-j,--jmeterlogfile}'[the jmeter log file]: :_files -g "*.log"' \ 27 | {-l,--logfile}'[the file to log samples to]: :_files -g "*.jtl"' \ 28 | {-i,--jmeterlogconf}'[jmeter logging configuration file]: :_files -g "*.xml"' \ 29 | {-j,--jmeterlogfile}'[jmeter run file]: :_files -g "*.log"' \ 30 | {-n,--nongui}'[run JMeter in nongui mode]' \ 31 | {-s,--server}'[run the JMeter server]' \ 32 | {-E,--proxyScheme}'[set a proxy scheme to use for the proxy server]:scheme' \ 33 | {-H,--proxyHost}'[set a proxy server for JMeter to use]: :_hosts' \ 34 | {-P,--proxyPort}'[set proxy server port for JMeter to use]:number' \ 35 | {-N,--nonProxyHosts}'[set non proxy host list]:host' \ 36 | {-u,--username}'[set username for proxy server that JMeter is to use]:username:_users' \ 37 | {-a,--password}'[set password for proxy server that JMeter is to use]:password' \ 38 | {-J-,--jmeterproperty}'[define additional JMeter properties]:argument=value' \ 39 | {-G-,--globalproperty}'[define Global properties (sent to servers)]:argument=value' \ 40 | {-D-,--systemproperty}'[define additional System properties]:argument=value' \ 41 | {-S,--systemPropertyFile}'[a property file to be added as System properties]:properties file:_files -g "*.properties"' \ 42 | {-f,--forceDeleteResultFile}'[force delete existing results files and web report folder]' \ 43 | {-L,--loglevel}'[define loglevel]:[category=]level' \ 44 | {-r,--runremote}'[start remote servers (as defined by the jmeter property remote_hosts)]' \ 45 | {-R,--remotestart}'[start these remote servers (overrides remote_hosts)]:remote servers list' \ 46 | {-d,--homedir}'[the JMeter home directory to use]: :_files -/' \ 47 | {-X,--remoteexit}'[exit the remote servers at end of test (non-GUI)]' \ 48 | {-g,--removeonly}'[generate report dashboard only, from a test results file]: :_files' \ 49 | {-e,--reportatendofloadtests}'[generate report dashboard after load test]' \ 50 | {-o,--reportoutputfolder}'[output folder for report dashboard]: :_files -/' 51 | 52 | # Local Variables: 53 | # mode: Shell-Script 54 | # sh-indentation: 2 55 | # indent-tabs-mode: nil 56 | # sh-basic-offset: 2 57 | # End: 58 | # vim: ft=zsh sw=2 ts=2 et 59 | -------------------------------------------------------------------------------- /src/_jmeter-plugins: -------------------------------------------------------------------------------- 1 | #compdef jmeter-plugins 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for jmeter-plugins command line tool 0.4.2 7 | # (https://jmeter-plugins.org/). 8 | # 9 | # ------------------------------------------------------------------------------ 10 | # Authors 11 | # ------- 12 | # 13 | # * Julien Nicoulaud 14 | # 15 | # ------------------------------------------------------------------------------ 16 | 17 | 18 | _arguments \ 19 | '(- 1 *)--help[show help options]' \ 20 | '--generate-png[generate PNG file containing graph]:PNG file name:_files -g "*.png"' \ 21 | '--generate-csv[generate CSV file containing graph data]:CSV file name:_files -g "*.csv"' \ 22 | '--input-jtl[load data from specified JTL file]:JTL file:_files -g "*.jtl"' \ 23 | '--plugin-type[type of graph to use for results generation]:class:((AggregateReport ThreadsStateOverTime BytesThroughputOverTime HitsPerSecond LatenciesOverTime PerfMon ResponseCodesPerSecond ResponseTimesDistribution ResponseTimesOverTime ResponseTimesPercentiles ThroughputOverTime ThroughputVsThreads TimesVsThreads TransactionsPerSecond))' \ 24 | '--width[set graph width]:graph width (pixels)' \ 25 | '--height[set graph height]::graph height (pixels)' \ 26 | '--granulation[granulation time for samples]:time (ms)' \ 27 | '--relative-times[use relative X axis times, no will set absolute times]: :((yes no))' \ 28 | '--aggregate-rows[aggregate all rows into one]: :((yes no))' \ 29 | '--paint-gradient[paint gradient background]: :((yes no))' \ 30 | '--paint-zeroing[paint zeroing lines]: :((yes no))' \ 31 | '--prevent-outliers[prevent outliers on distribution graph]: :((yes no))' \ 32 | '--limit-rows[limit number of points in row]:number of points' \ 33 | '--force-y[force Y axis limit]:limit' \ 34 | '--hide-low-counts[hide points with sample count below limit]:limit' 35 | 36 | # Local Variables: 37 | # mode: Shell-Script 38 | # sh-indentation: 2 39 | # indent-tabs-mode: nil 40 | # sh-basic-offset: 2 41 | # End: 42 | # vim: ft=zsh sw=2 ts=2 et 43 | -------------------------------------------------------------------------------- /src/_jrnl: -------------------------------------------------------------------------------- 1 | #compdef jrnl 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for jrnl a simple journal application for your command line. (https://maebert.github.io/jrnl/). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Jindřich Pilař (https://github.com/JindrichPilar) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | 42 | _jrnl() { 43 | 44 | _arguments -C \ 45 | '(- 1 *)'-h"[Show help and exit]" \ 46 | '(- 1 *)'-v"[Prints version information and exits]" \ 47 | '(- 1 *)'-ls"[Displays accessible journals]" \ 48 | '(- 1 *)'-d"[Execute in debug mode]" \ 49 | '(- 1 *)'--tags"[Returns a list of all tags and number of occurrences]" \ 50 | "--short[Show only titles or line containing the search]" \ 51 | "-from[View entries after this date]:date:" \ 52 | "-until[View entries before this date]:date:" \ 53 | "-to[View entries before this date]:date:" \ 54 | "-on[View entries on this date]:date:" \ 55 | "-and[Filter by tags using AND (default: OR)]" \ 56 | "-starred[Show only starred entries]" \ 57 | "-n[Shows the last n entries matching the filter. And '-3' have the same effect.]":number: \ 58 | "--export[Export your journal. TYPE can be json, markdown text.]:format:(json markdown text)" \ 59 | "-o[Optionally specifies output file when using --export If OUTPUT is a directory, exports each entry in individual file instead.]:output file:" \ 60 | "--encrypt[Encrypts your existing journal with a new pass]" \ 61 | "--decrypt[Decrypts your journal and stores it in plain text]" \ 62 | "--edit[Opens your editor to edit the selected entries.]" \ 63 | } 64 | 65 | _jrnl 66 | 67 | -------------------------------------------------------------------------------- /src/_kak: -------------------------------------------------------------------------------- 1 | #compdef kak 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for kak 2024.05.18 (https://github.com/mawww/kakoune) 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Frank LENORMAND 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | _kak_sessions() { 42 | local -a session_ids expl 43 | session_ids=($(_call_program session_names kak -l)) 44 | _description session-ids expl "session name" 45 | compadd "$expl[@]" -a session_ids 46 | } 47 | 48 | _kak() { 49 | _arguments \ 50 | '-c[connect to given session]:session_id:_kak_sessions' \ 51 | '-e[execute argument on client initialization phase]:keys' \ 52 | '-E[execute argument on server initialization]:keys' \ 53 | "-n[do not load the system's kakrc]" \ 54 | '-s[set the current session name]:session_id' \ 55 | '-d[run as a headless session (requires -s)]' \ 56 | '-p[just send stdin as commands to the given session]:session_id:_kak_sessions' \ 57 | "-f[enter in 'filter mode':select the whole file, then execute keys]:keys" \ 58 | '-i[backup the files on which a filter is applied using the given suffix]:suffix' \ 59 | '-q[in filter mode, do not print any errors]' \ 60 | '-ui[set the type of user interface to use (terminal, dummy, or json)]:ui_type:(terminal dummy json)' \ 61 | '-l[list existing sessions]:session_id:_kak_sessions' \ 62 | '-clear[clear dead sessions]' \ 63 | '-debug[initial debug option value]:arg' \ 64 | '(- *)-version[display Kakoune version and quit]' \ 65 | '-ro[readonly mode]' \ 66 | '(- *)-help[display a help message and quit]' \ 67 | '*::files:_files' 68 | } 69 | 70 | _kak "$@" 71 | 72 | # Local Variables: 73 | # mode: Shell-Script 74 | # sh-indentation: 2 75 | # indent-tabs-mode: nil 76 | # sh-basic-offset: 2 77 | # End: 78 | # vim: ft=zsh sw=2 ts=2 et 79 | -------------------------------------------------------------------------------- /src/_kitchen: -------------------------------------------------------------------------------- 1 | #compdef kitchen 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for Test Kitchen (https://kitchen.ci/). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Peter Eisentraut (https://github.com/petere) 38 | # * Shohei YOSHIDA (https://github.com/syohex) 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | 43 | _kitchen() { 44 | local curcontext="$curcontext" state line 45 | typeset -A opt_args 46 | 47 | _arguments '1: :->cmds'\ 48 | '2: :->args' 49 | 50 | case $state in 51 | cmds) 52 | _kitchen_commands 53 | ;; 54 | args) 55 | case $line[1] in 56 | converge|create|destroy|diagnose|list|setup|test|verify) 57 | compadd 'all' 58 | _kitchen_instances 59 | ;; 60 | login) 61 | _kitchen_instances 62 | ;; 63 | esac 64 | ;; 65 | esac 66 | } 67 | 68 | _kitchen_commands() { 69 | local commands 70 | 71 | commands=("${(@f)$(_call_program commands $service help | sed -n 's/^ kitchen \([[:alpha:]]*\) .*# \(.*\)$/\1:\2/p')}") 72 | _describe -t commands 'kitchen commands' commands 73 | } 74 | 75 | _kitchen_instances() { 76 | if [[ $_kitchen_instances_cache_dir != $PWD ]]; then 77 | unset _kitchen_instances_cache 78 | fi 79 | if [[ ${+_kitchen_instances_cache} -eq 0 ]]; then 80 | _kitchen_instances_cache=(${(f)"$(_call_program instances $service list -b 2>/dev/null)"}) 81 | _kitchen_instances_cache_dir=$PWD 82 | fi 83 | _wanted instances expl 'instance' compadd -a _kitchen_instances_cache 84 | } 85 | 86 | _kitchen "$@" 87 | -------------------------------------------------------------------------------- /src/_l3build: -------------------------------------------------------------------------------- 1 | #compdef l3build 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for l3build (https://github.com/latex3/l3build/). 7 | # Modified from rejected https://github.com/latex3/l3build/pull/267 8 | # 9 | # ------------------------------------------------------------------------------ 10 | # Authors 11 | # ------- 12 | # 13 | # * Wu Zhenyu 14 | # 15 | # ------------------------------------------------------------------------------ 16 | 17 | __l3build() { 18 | local targets=( 19 | 'check:Run\ all\ automated\ tests' 20 | 'clean:Clean\ out\ directory\ tree' 21 | 'ctan:Create\ CTAN-ready\ archive' 22 | 'doc:Typesets\ all\ documentation\ files' 23 | 'install:Installs\ files\ into\ the\ local\ texmf\ tree' 24 | 'manifest:Creates\ a\ manifest\ file' 25 | 'save:Saves\ test\ validation\ log' 26 | 'tag:Updates\ release\ tags\ in\ files' 27 | 'uninstall:Uninstalls\ files\ from\ the\ local\ texmf\ tree' 28 | 'unpack:Unpacks\ the\ source\ files\ into\ the\ build\ tree' 29 | 'upload:Send\ archive\ to\ CTAN\ for\ public\ release' 30 | ) 31 | local options=( 32 | {--config,-c}'[Sets the config(s) used for running tests]':lua_file:'_files -g "*.lua"' 33 | --date'[Sets the date to insert into sources]': 34 | --debug'[Runs target in debug mode]' 35 | --dirty'[Skip cleaning up the test area]' 36 | --dry-run'[Dry run for install or upload]' 37 | --email'[Email address of CTAN uploader]': 38 | {--engine,-e}'[Sets the engine(s) to use for running test]':engine:'(pdftex xetex luatex ptex uptex)' 39 | --epoch'[Sets the epoch for tests and typesetting]': 40 | {--file,-F}'[Take the upload announcement from the given file]':file:_files 41 | --first'[Name of first test to run]': 42 | {--force,-f}'[Force tests to run if engine is not set up]' 43 | --full'[Install all files]' 44 | {--halt-on-error,-H}'[Stops running tests after the first failure]' 45 | '(- : *)'{--help,-h}'[Print this message and exit]' 46 | --last'[Name of last test to run]': 47 | {--message,-m}'[Text for upload announcement message]': 48 | {--quiet,-q}'[Suppresses TeX output when unpacking]' 49 | --rerun'[Skip setup\: simply rerun tests]' 50 | --show-log-on-error'[Show the full log of the failure with '\''halt-on-error'\'']' 51 | {--show-saves,-S}'[Show the invocation to update failing .tlg files]' 52 | --shuffle'[Shuffle order of tests]' 53 | --texmfhome'[Location of user texmf tree]': 54 | '(- : *)'--version'[Print version information and exit]' 55 | ) 56 | _arguments -s -S $options "1:target:(($targets))" 57 | } 58 | 59 | __l3build 60 | 61 | # Local Variables: 62 | # mode: Shell-Script 63 | # sh-indentation: 2 64 | # indent-tabs-mode: nil 65 | # sh-basic-offset: 2 66 | # End: 67 | # vim: ft=zsh sw=2 ts=2 et 68 | -------------------------------------------------------------------------------- /src/_mc: -------------------------------------------------------------------------------- 1 | #compdef mc 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2019 Sebastian Gniazdowski 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for Midnight Commander 4.8.28 (https://midnight-commander.org/) 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Sebastian Gniazdowski (https://github.com/psprint) 34 | # ------------------------------------------------------------------------------ 35 | 36 | setopt localoptions warncreateglobal typesetsilent 37 | 38 | local -a opts 39 | opts=( 40 | {-h,--help}'[show help on options]' 41 | --help-all'[show help on all options]' 42 | --help-terminal'[terminal options help]' 43 | --help-color'[color options help]' 44 | {-a,--stickchars}'[use stickchars to draw]' 45 | '(-c --color -b --nocolor)'{-b,--nocolor}'[requests to run in black and white]' 46 | '(-b --nocolor -c --color)'{-c,--color}'[request to run in color mode]' 47 | {-C,--colors=}'[specifies a color configuration]:arg:' 48 | --configure-options'[print configure options]' 49 | {-d,--nomouse}'[disable mouse support in text version]' 50 | {-d,--debuglevel=}'[save the debug level for SMB VFS]:debug level:(0 1 2 3 4 5 6 7 8 9 10)' 51 | {-e,--edit=}'[edit files]:file:_files' 52 | {-f,--datadir}'[print data directory]' 53 | {-F,--datadir-info}'[print extended info about used data directories]' 54 | {-g,--oldmouse}'[tries to use an old highlight mouse tracking]' 55 | {-k,--resetsoft}'[resets soft keys on HP terminals]' 56 | {-K,--keymap=}'[load definitions of key bindings from specified file]:file:_files' 57 | {-l,--ftplog=}'[log ftp dialog to specified file]:file:_files' 58 | --nokeymap"[don't load key bindings from any file, use default hardcoded keys]" 59 | {-P,--printwd=}'[print last working directory to specified file]:file:_files' 60 | {-s,--slow}'[to run on slow terminals]' 61 | {-S,--skin=}'[show mc with specified skin]:skin:' 62 | {-t,--termcap}'[tries to use termcap instead of terminfo]' 63 | '(-U --subshell -u --nosubshell)'{-u,--nosubshell}'[disables subshell support]' 64 | '(-u --nosubshell -U --subshell)'{-U,--subshell}'[enables subshell support (default)]' 65 | {-v,--view=}'[launches the file viewer on a file]:file:_files' 66 | {-V,--version}'[displays the current version]' 67 | {-x,--xterm}'[forces xterm features]' 68 | {-X,--no-x11}'[disable X11 support]' 69 | '*:pane directory:_directories' 70 | ) 71 | 72 | _arguments -s $opts 73 | 74 | # Return value passes through 75 | 76 | # Local Variables: 77 | # mode: Shell-Script 78 | # sh-indentation: 2 79 | # indent-tabs-mode: nil 80 | # sh-basic-offset: 2 81 | # End: 82 | # vim: ft=zsh sw=2 ts=2 et 83 | -------------------------------------------------------------------------------- /src/_mina: -------------------------------------------------------------------------------- 1 | #compdef mina 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for Mina (http://nadarei.co/mina/). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Kazuya Takeshima (https://github.com/mitukiii) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | 42 | local curcontext="$curcontext" state line cmds ret=1 43 | 44 | _arguments -C \ 45 | {-h,--help}'[Show help]' \ 46 | {-V,--version}'[Show program version]' \ 47 | {-v,--verbose}'[Show commands as they happen]' \ 48 | {-s,--simulate}'[Run in simulation mode]' \ 49 | {-t,--trace}'[Show backtraces when errors occur]' \ 50 | -f'[Use FILE as the deploy configuration]:file:_files' \ 51 | '*: :->cmds' && ret=0 52 | 53 | case $state in 54 | cmds) 55 | cmds=( ${(f)"$(_call_program commands mina -T 2> /dev/null | sed -e 's/:/\\:/g; s/\[/\\[/g; s/\]/\\]/g; s/mina \([^ ]*\) .*# /\1:/g')"} ) 56 | _describe -t commands 'mina command' cmds && ret=0 57 | ;; 58 | esac 59 | 60 | return ret 61 | 62 | # Local Variables: 63 | # mode: Shell-Script 64 | # sh-indentation: 2 65 | # indent-tabs-mode: nil 66 | # sh-basic-offset: 2 67 | # End: 68 | # vim: ft=zsh sw=2 ts=2 et 69 | -------------------------------------------------------------------------------- /src/_mkcert: -------------------------------------------------------------------------------- 1 | #compdef mkcert 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for mkcert v1.4.4 (https://github.com/FiloSottile/mkcert) 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Shohei Yoshida (https://github.com/syohex) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | _arguments \ 38 | '(- *)-help[Print help message]' \ 39 | '(- *)-version[Print version information]' \ 40 | '-install[Install the local CA in the system trust store]' \ 41 | '-uninstall[Uninstall the local CA]' \ 42 | '-cert-file[Specify cert file output path]:path:_files' \ 43 | '-key-file[Specify key file output path]:path:_files' \ 44 | '-p12-file[Specify p12 file output path]:path:_files' \ 45 | '-client[Generate a certificate for client authentication]' \ 46 | '-ecdsa[Generate a certificate with an ECDSA key]' \ 47 | '-pkcs12[Generate a ".p12" PKCS #12 file]' \ 48 | '-csr[Generate a certificate based on the supplied CSR]:csr' \ 49 | '(- *)-CAROOT[Print the CA certificate and key storage location]' \ 50 | && return 0 51 | 52 | # Local Variables: 53 | # mode: Shell-Script 54 | # sh-indentation: 2 55 | # indent-tabs-mode: nil 56 | # sh-basic-offset: 2 57 | # End: 58 | # vim: ft=zsh sw=2 ts=2 et 59 | -------------------------------------------------------------------------------- /src/_mssh: -------------------------------------------------------------------------------- 1 | #compdef mssh 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2020 Hyeon Kim 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # mssh is a Python client for accessing EC2 instances via AWS EC2 Instance 27 | # Connect. 28 | # 29 | # References: 30 | # https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-methods.html#ec2-instance-connect-connecting-ec2-cli 31 | # https://github.com/aws/aws-ec2-instance-connect-cli 32 | # https://pypi.org/project/ec2instanceconnectcli/ 33 | # 34 | # ------------------------------------------------------------------------------ 35 | # Authors 36 | # ------- 37 | # 38 | # * Hyeon Kim (https://hyeon.me/) 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | # Do nothing if there's no AWS CLI 43 | if (( ! $+commands[aws] )); then 44 | return 45 | fi 46 | 47 | # Define function only when it doesn't exist 48 | (( $+functions[_mssh_cache_policy] )) || _mssh_cache_policy() { 49 | # Cache invalidates after 30 seconds 50 | # 51 | # Reference: 52 | # https://zsh.sourceforge.net/Doc/Release/Expansion.html#index-globbing_002c-qualifiers 53 | local -a oldp 54 | oldp=( "$1"(ms+30) ) 55 | (( $#oldp )) 56 | } 57 | 58 | # Unless user explicitly turned off caching, enable caching just for this context 59 | local existing_setting 60 | zstyle -s ":completion:${curcontext}:" use-cache existing_setting 61 | if [[ -z "${existing_setting}" ]]; then 62 | zstyle ":completion:${curcontext}:" use-cache on 63 | fi 64 | 65 | # Update cache policy only when there was no existing policy 66 | local existing_policy 67 | zstyle -s ":completion:${curcontext}:" cache-policy existing_policy 68 | if [[ -z "${existing_policy}" ]]; then 69 | zstyle ":completion:${curcontext}:" cache-policy _mssh_cache_policy 70 | fi 71 | 72 | local -a instances 73 | if _cache_invalid mssh_instances || ! _retrieve_cache mssh_instances; then 74 | # Cache is invalid or caching retrieval failed (usually due to disabled cache) 75 | 76 | # Store the output of the AWS CLI separately 77 | # 78 | # Reference: 79 | # https://unix.stackexchange.com/a/430182 80 | local stderr 81 | local -i exit_code 82 | () { 83 | aws ec2 describe-instances \ 84 | --query 'Reservations[].Instances[] | [?State.Name == `running`].join(`:`, [InstanceId, Tags[?Key == `Name`].Value | [0]])' \ 85 | --output text \ 86 | >${1} 2>${2} 87 | exit_code=${?} 88 | IFS=$'\n\t' instances=($(<${1})) 89 | stderr=$(<${2}) 90 | } =(:) =(:) 91 | 92 | if (( $exit_code == 0 )); then 93 | # AWS CLI successfully executed 94 | _store_cache mssh_instances instances 95 | else 96 | # AWS CLI failed, abort autocompletion 97 | _message -r "\ 98 | Failed autocomplete due to following reason: 99 | ${stderr}" 100 | return 101 | fi 102 | fi 103 | 104 | _describe 'command' instances 105 | 106 | # Reference: 107 | # https://zsh.sourceforge.net/Doc/Release/Completion-System.html 108 | # https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org 109 | -------------------------------------------------------------------------------- /src/_mussh: -------------------------------------------------------------------------------- 1 | #compdef mussh 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for MUltihost SSH Wrapper (https://sourceforge.net/projects/mussh/) 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Mario Fernandez (https://github.com/sirech) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | local curcontext="$curcontext" state line ret=1 42 | typeset -A opt_args 43 | 44 | # TODO: 45 | # -i: admit more than one use 46 | # -d, -v, -t: control input 47 | # -m: Accept number (but also empty) 48 | # -h: Accept multiple hosts, also more than one use 49 | # -H: Accept multiple files, also more than one use 50 | 51 | _arguments -C \ 52 | '--help[display this help message]' \ 53 | '-V[print version info and exit]' \ 54 | '-d[Verbose debug]:level (from 0 to 2)' \ 55 | '-v[SSH debug level]:level (from 0 to 3)' \ 56 | '-m[Run concurrently]' \ 57 | '(-b -B)-b[Print each hosts output in a block without mingling with other hosts output]' \ 58 | '(-b -B)-B[Allow hosts output to mingle. (default)]' \ 59 | '(-a -A)-a[Force loading ssh-agent]' \ 60 | '(-a -A)-A[Do NOT load ssh-agent]' \ 61 | '(-u -U)-u[Unique. Eliminate duplicate hosts. (default)]' \ 62 | '(-u -U)-U[Do NOT make host list unique]' \ 63 | '-P[Do NOT fall back to passwords on any host. This will skip hosts where keys fail]' \ 64 | '-i[Load an identity file. May be used more than once]:identity' \ 65 | '-o[Args to pass to ssh with -o option]:ssh-args' \ 66 | '(-l -L)-l[Use _login_ when no other is specified with the hostname]:login' \ 67 | '(-l -L)-L[Force use of _login_ on all hosts]:login' \ 68 | '-s[Path to shell on remote host]:shell' \ 69 | '-t[Timeout setting for each session]:timeout' \ 70 | '-p[Host to use as proxy]:[user@]host' \ 71 | '-po[Args to pass to ssh on proxy with -o option]:ssh-args' \ 72 | '(-h -H)-h[Add a host to list of hosts]:[user@]host' \ 73 | '(-h -H)-H[Add contents of file to list of hosts]:host file:_files' \ 74 | '(-c -C)-c[Add a command or quoted list of commands to list of commands to be executed on each host]:command' \ 75 | '(-c -C)-C[Add file contents to list of commands to be executed on each host]:commands file:_files' \ 76 | '(-q)-q[No output unless necessary]' && ret=0 77 | 78 | return ret 79 | 80 | # Local Variables: 81 | # mode: Shell-Script 82 | # sh-indentation: 2 83 | # indent-tabs-mode: nil 84 | # sh-basic-offset: 2 85 | # End: 86 | # vim: ft=zsh sw=2 ts=2 et 87 | -------------------------------------------------------------------------------- /src/_neo: -------------------------------------------------------------------------------- 1 | #compdef neo 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for neo (https://github.com/st3w/neo). 7 | # 8 | # ------------------------------------------------------------------------------ 9 | # Authors 10 | # ------- 11 | # 12 | # * Hydrargyrum (https://github.com/hydrargyrum) 13 | # 14 | # ------------------------------------------------------------------------------ 15 | 16 | _arguments \ 17 | '(-a --async)'{-a,--async}'[make each column of characters scroll at an independent speed]' \ 18 | '(-b --bold)'{-b+,--bold=}'[control if and how neo displays bold characters]:choice [1]:((0\:off 1\:random\ \(default\) 2\:all))' \ 19 | '(-C --colorfile -c --color)'{-C+,--colorfile=}'[read the colors from a file]: :_files' \ 20 | '(-C --colorfile -c --color)'{-c+,--color=}'[set the foreground text color]:color [green]:(green green2 green3 yellow orange red blue cyan gold rainbow purple pink pink2 vaporwave gray)' \ 21 | '(-D --defaultbg)'{-D,--defaultbg}'[use the default terminal background color]' \ 22 | '(-d --density)'{-d+,--density=}'[control how many droplets will appear onscreen]: :_numbers -f -d 1.0' \ 23 | '(-F --fullwidth)'{-F,--fullwidth}'[use two columns per character]' \ 24 | '(-f --fps)'{-f+,--fps=}'[set a frame rate target]: :_numbers -d 60' \ 25 | '(-G --glitchpct)'{-G+,--glitchpct=}'[set the percentage of characters onscreen that glitch]: :_numbers -f -d 10.0' \ 26 | '(-g --glitchms)'{-g+,--glitchms=}'[control how often the characters on screen glitch]:N [300,400]]' \ 27 | '(-h --help)'{-h,--help}'[shows the help message]' \ 28 | '(-l --lingerms)'{-l+,--lingerms=}'[control how long characters stay onscreen after they finish scrolling]:N [1,3000]' \ 29 | '(-M --shadingmode)'{-M+,--shadingmode=}'[control how neo assigns color values to characters on the screen]:choice [1]:((0\:random\ \(default\) 1\:gradient))' \ 30 | '(-m --message)'{-m+,--message=}'[display a message in the center of the screen]:message' \ 31 | '(-p --profile)'{-p,--profile}'[turn on the profiling mode]' \ 32 | '(-r --rippct)'{-r+,--rippct=}'[set the percentage of droplets that stop scrolling before reaching the bottom of the screen]: :_numbers -f -d 33.0' \ 33 | '(-S --speed)'{-S+,--speed=}'[control how fast characters scroll down the screen]: :_numbers -f -d 8.0' \ 34 | '(-s --screensaver)'{-s,--screensaver}'[exit on the first key press]' \ 35 | '(-V --version)'{-V,--version}'[display the version, build date, copyright, and license]' \ 36 | --noglitch'[disable character glitching]' \ 37 | --chars='[display Unicode characters between NUM1 and NUM2 inclusive]:CHAR,CHAR' \ 38 | --charset='[set the charset that is used to draw characters onto the screen]:flag:(ascii extended english dec decimal digits punc bin binary hex hexadecimal katakana greek cyrillic arabic hebrew devanagari braille runic)' \ 39 | --colormode='[set the color mode]:flag:((0\:mono 16\:16\ colors 32\:32-bit\ color 256\:256\ colors))' \ 40 | --maxdpc='[set the maximum number of droplets per column]: :_numbers -d 3' \ 41 | --shortpct='[set the percentage of shortened droplets]: :_numbers -f -d 50.0' 42 | 43 | # Local Variables: 44 | # mode: Shell-Script 45 | # sh-indentation: 2 46 | # indent-tabs-mode: nil 47 | # sh-basic-offset: 2 48 | # End: 49 | # vim: ft=zsh sw=2 ts=2 et 50 | -------------------------------------------------------------------------------- /src/_networkQuality: -------------------------------------------------------------------------------- 1 | #compdef networkQuality 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for networkQuality on macOS 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Shohei Yoshida (https://github.com/syohex) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | _arguments \ 38 | '-C[Use custom configuration URL or path]:url_or_path' \ 39 | '-I[Bind test to interface]:interface:_net_interfaces' \ 40 | '-r[Connect to host or IP]:host' \ 41 | '-c[Produce computer-readable output]' \ 42 | '-h[Show help]' \ 43 | '-k[Disable verification of the server identity via TLS]' \ 44 | '-s[Run tests sequentially instead of parallel upload/download]' \ 45 | '-v[Verbose output]' 46 | 47 | # Local Variables: 48 | # mode: Shell-Script 49 | # sh-indentation: 2 50 | # indent-tabs-mode: nil 51 | # sh-basic-offset: 2 52 | # End: 53 | # vim: ft=zsh sw=2 ts=2 et 54 | -------------------------------------------------------------------------------- /src/_optirun: -------------------------------------------------------------------------------- 1 | #compdef optirun 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for the optirun command from bumblebee 32 | # (https://github.com/Bumblebee-Project/Bumblebee). 33 | # 34 | # ------------------------------------------------------------------------------ 35 | # Authors 36 | # ------- 37 | # 38 | # * Christophe-Marie Duquesne 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | local -a arguments=( 43 | '--version[output version information]' 44 | '(-h --help)'{-h,--help}'[show help]' 45 | '(-c --vgl-compress)'{-c,--vgl-compress}'[image transport method]:method:(proxy jpeg rgb xb yuv)' 46 | '--failsafe[run a program even if the nvidia card is unavailable]:boolean:(true false)' 47 | '--no-failsafe[do not run a program if the nvidia card is unavailable]' 48 | '--vgl-options[options to be passed to vglrun (example: +tr)]' 49 | '(-q --quiet --silent)'{-q,--quiet,--silent}'[suppress all logging messages]' 50 | '(-v --verbose)'{-v,--verbose}'[increase the verbosity level of log messages]' 51 | '--debug[set the verbosity level to the maximum]' 52 | '(-b --bridge)'{-b,--bridge}'[specify bridge library to use: VirtualGL, Primus or auto]:method:(auto primus virtualgl none)' 53 | '(-d --display)'{-d,--display}'[the X display number to use]:display:_x_display' 54 | '(-C --config)'{-C,--config}'[retrieve settings for Bumblebee from FILE]:file:_files' 55 | '(-l --ldpath)'{-l,--ldpath}'[PATH the libraries like libGL.so are searched in]:file:_files -/' 56 | '--primus-ldpath[a colon-separated list of paths which are searched for the primus libGL.so.1]:file:_files' 57 | '(-s --socket)'{-s,--socket}'[use FILE for communication with the daemon]:file:_files' 58 | '--no-xorg[do not start secondary X server (implies -b none)]' 59 | '*::arguments: _normal' 60 | ) 61 | 62 | _arguments $arguments 63 | 64 | # Local Variables: 65 | # mode: Shell-Script 66 | # sh-indentation: 2 67 | # indent-tabs-mode: nil 68 | # sh-basic-offset: 2 69 | # End: 70 | # vim: ft=zsh sw=2 ts=2 et 71 | -------------------------------------------------------------------------------- /src/_patool: -------------------------------------------------------------------------------- 1 | #compdef patool 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for patool (https://github.com/wummel/patool). 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Sergei Eremenko (https://github.com/SmartFinn) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | local state line ret=1 38 | 39 | _arguments -C \ 40 | '(-h --help)'{-h,--help}'[show help message and exit]' \ 41 | '(--non-interactive)'--non-interactive'[do not query for user input]' \ 42 | '(-v --verbose)'{-v,--verbose}'[verbose operation]' \ 43 | '1:cmd:->cmds' \ 44 | '*:arg:->args' && ret=0 45 | 46 | case $state in 47 | (cmds) 48 | local -a cmds 49 | 50 | cmds=( 51 | 'create:create an archive from given files' 52 | 'diff:show differences between two archives' 53 | 'extract:extract files from given archives' 54 | 'formats:show all supported archive formats' 55 | 'list:list files in archives' 56 | 'repack:repackage archive to a different format' 57 | 'recompress:recompress an archive to smaller size' 58 | 'search:search in archive contents for given pattern' 59 | 'test:test the given archives' 60 | ) 61 | 62 | _describe -t commands 'patool commands' cmds && ret=0 63 | ;; 64 | (args) 65 | case $line[1] in 66 | (extract) 67 | _arguments \ 68 | '--outdir[extract to the given output directory]:select directory:_files -/' \ 69 | '*:files:_files' && ret=0 70 | ;; 71 | (formats) 72 | _message 'no more arguments' && ret=0 73 | ;; 74 | (search) 75 | _arguments \ 76 | '2:search pattern:' \ 77 | '*:files:_files' && ret=0 78 | ;; 79 | (*) 80 | _arguments \ 81 | '*:files:_files' && ret=0 82 | ;; 83 | esac 84 | ;; 85 | esac 86 | 87 | return $ret 88 | 89 | # Local Variables: 90 | # mode: Shell-Script 91 | # sh-indentation: 2 92 | # indent-tabs-mode: nil 93 | # sh-basic-offset: 2 94 | # End: 95 | # vim: ft=zsh sw=2 ts=2 et 96 | -------------------------------------------------------------------------------- /src/_periscope: -------------------------------------------------------------------------------- 1 | #compdef periscope 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for Periscope (https://code.google.com/archive/p/periscope/). 7 | # 8 | # ------------------------------------------------------------------------------ 9 | # Authors 10 | # ------- 11 | # 12 | # * Julien Nicoulaud 13 | # 14 | # ------------------------------------------------------------------------------ 15 | 16 | 17 | _arguments \ 18 | '(- : *)'{-h,--help}'[show help message and exit]' \ 19 | '(- : *)--version[show version number and exit]' \ 20 | '*'{-l,--language}'[wanted language]: :_language_codes ISO-639-1' \ 21 | '(-f --force)'{-f,--force}'[replace existing subtitle file]' \ 22 | '(-q --query)'{-q,--query}'[query to send to the subtitles website]:queries' \ 23 | '--list-plugins[list all plugins supported by periscope]' \ 24 | '--list-active-plugins[list all plugins used to search subtitles]' \ 25 | '--cache-folder[cache/config directory to use]: :_files -/' \ 26 | '--quiet[run in quiet mode (only show warn and error messages)]' \ 27 | '--debug[set the logging level to debug]' \ 28 | '*: :_files' 29 | 30 | # Local Variables: 31 | # mode: Shell-Script 32 | # sh-indentation: 2 33 | # indent-tabs-mode: nil 34 | # sh-basic-offset: 2 35 | # End: 36 | # vim: ft=zsh sw=2 ts=2 et 37 | -------------------------------------------------------------------------------- /src/_phing: -------------------------------------------------------------------------------- 1 | #compdef phing 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) Igor M. Timoshenko 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining a copy 6 | # of this software and associated documentation files (the "Software"), to deal 7 | # in the Software without restriction, including without limitation the rights 8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | # copies of the Software, and to permit persons to whom the Software is furnished 10 | # to do so, subject to the following conditions: 11 | # 12 | # The above copyright notice and this permission notice shall be included in all 13 | # copies or substantial portions of the Software. 14 | 15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | # THE SOFTWARE. 22 | # ------------------------------------------------------------------------------ 23 | # Description 24 | # ----------- 25 | # 26 | # Completion script for Phing (https://www.phing.info/). 27 | # 28 | # ------------------------------------------------------------------------------ 29 | # Authors 30 | # ------- 31 | # 32 | # * Igor Timoshenko 33 | # 34 | # ------------------------------------------------------------------------------ 35 | 36 | _phing() { 37 | local context curcontext="$curcontext" state line ret=1 38 | integer NORMARG 39 | typeset -A opt_args 40 | 41 | # Follow https://www.phing.info/guide/chunkhtml/sec.commandlineargs.html for more information 42 | _arguments \ 43 | '(-h -help)'{-h,-help}'[display the help screen]' \ 44 | '(-v -version)'{-v,-version}'[print version information and exit]' \ 45 | '(-l -list)'{-l,-list}'[list all available targets in buildfile (excluding targets that have their hidden attribute set to true)]' \ 46 | '(-q -quiet)'{-q,-quiet}'[quiet operation, no output at all]' \ 47 | '-verbose[verbose, give some more output]' \ 48 | '-debug[output debug information]' \ 49 | '-logfile [use given file for log]:file:_files' \ 50 | '-D[set the property to the specified value to be used in the buildfile]' \ 51 | '-find []:file:_files' \ 52 | '-buildfile [specify an alternate buildfile name. Default is build.xml]:file:_files' \ 53 | '-logger [specify an alternate logger. Default is phing.listener.DefaultLogger. Other options include phing.listener.NoBannerLogger, phing.listener.AnsiColorLogger, phing.listener.XmlLogger, phing.listener.TargetLogger and phing.listener.HtmlColorLogger]' \ 54 | '-propertyfile [load properties from the specified file]:file:_files' \ 55 | '(-v --version)'{-v,--version}'[show version]' \ 56 | '1: :->targets' \ 57 | '*:: :->args' \ 58 | && ret=0 59 | 60 | case $state in 61 | targets) 62 | local buildfile; buildfile=build.xml 63 | if [[ ! -f $buildfile ]] 64 | then 65 | ret=0 66 | else 67 | local targets; targets=($(sed -nE "/ 4 | # Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users 5 | # 6 | # Permission to use, copy, modify, and/or distribute this software for any 7 | # purpose with or without fee is hereby granted, provided that the above 8 | # copyright notice and this permission notice appear in all copies. 9 | # 10 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | # ------------------------------------------------------------------------------ 18 | # Description 19 | # ----------- 20 | # 21 | # Completion script for rfkill 2.38.1 (https://wireless.wiki.kernel.org/en/users/Documentation/rfkill) 22 | # 23 | # ------------------------------------------------------------------------------ 24 | # Authors 25 | # ------- 26 | # 27 | # * Vincent Bernat 28 | # * Shohei YOSHIDA 29 | # 30 | # ------------------------------------------------------------------------------ 31 | 32 | _rfkill_types() { 33 | local -a devicetypes=(all 34 | "wifi:Wireless LAN" "wlan:Wireless LAN" 35 | "bluetooth:Bluetooth" 36 | "uwb:Ultrawide Band" 37 | "ultrawideband:Ultrawide Band" 38 | "wimax:Wimax" 39 | "wwan:3G" 40 | "gps:GPS" 41 | "fm:FM Radio" 42 | "nfc:NFC") 43 | _describe -t device-types "device types" devicetypes 44 | } 45 | 46 | _rfkill_devices() { 47 | local -a devices=(${(M)${(f)"$(rfkill list)"}:#[0-9]*}) 48 | _rfkill_types 49 | _describe -t devices "devices" devices 50 | } 51 | 52 | _rfkill_columns() { 53 | local -a columns=(DEVICE ID TYPE TYPE-DESC SOFT HARD) 54 | _values -s ',' 'column' $columns 55 | } 56 | 57 | _rfkill_command() { 58 | local -a commands=( 59 | 'help:display help text and exit' 60 | 'event:listen for rfkill events and display them on stdout' 61 | 'list:list the current state of all available devices' 62 | 'block:disable the corresponding device' 63 | 'unblock:enable the corresponding device' 64 | 'toggle:enable or disable the corresponding device' 65 | ) 66 | _describe -t commands 'command' commands "$@" 67 | } 68 | 69 | _rfkill_subcommand() { 70 | case "$words[1]" in 71 | (list) 72 | _arguments ':types:_rfkill_types' 73 | ;; 74 | (block|unblock|toggle) 75 | _arguments ':device:_rfkill_devices' 76 | ;; 77 | esac 78 | } 79 | 80 | _rfkill () { 81 | local curcontext="$curcontext" state line 82 | typeset -A opt_args 83 | 84 | _arguments -C \ 85 | '(* -)'{-h,--help}'[display help]' \ 86 | '(* -)'{-V,--version}'[get version]' \ 87 | '(-J --json -r --raw)'{-J,--json}'[use JSON output format]' \ 88 | '(-n --noheadings)'{-n,--noheadings}"[don't print headings]" \ 89 | '(-o --output --output-all)'{-o,--output}'[define which output columns to use]:column_list:_rfkill_columns' \ 90 | '(-o --output --output-all)--output-all[output all columns]' \ 91 | '(-J --json -r --raw)'{-r,--raw}'[use the raw output format]' \ 92 | '(-): :_rfkill_command' \ 93 | '(-)*:: :->arguments' 94 | 95 | case $state in 96 | (arguments) 97 | curcontext=${curcontext%:*:*}:rfkill-$words[1]: 98 | _rfkill_subcommand 99 | ;; 100 | esac 101 | } 102 | 103 | _rfkill "$@" 104 | 105 | # Local Variables: 106 | # mode: Shell-Script 107 | # sh-indentation: 2 108 | # indent-tabs-mode: nil 109 | # sh-basic-offset: 2 110 | # End: 111 | # vim: ft=zsh sw=2 ts=2 et 112 | -------------------------------------------------------------------------------- /src/_rslsync: -------------------------------------------------------------------------------- 1 | #compdef rslsync 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for resilio sync 2.7.3 (https://www.resilio.com/individuals/). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Fabian Klötzl (https://github.com/kloetzl) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | _rslsync(){ 42 | integer ret=1 43 | local -a args 44 | args+=( 45 | '(- *)--help[Print help]' 46 | '--config[Use a configuration file]:file:_files' 47 | '--storage[Storage path for identity and license]:path:_files -/' 48 | '--identity[Creates user identity]:name:' 49 | '--license[Apply owner license]:file:_files' 50 | '--decrypt[Decrypt encrypted folder]:' 51 | '--upgradedb[Upgrade databases in specified storage or upgrade a single db]:db:_files' 52 | '--nodaemon[Do not daemonize]' 53 | '--dump-sample-config[Print a sample configuration file]' 54 | '--log[Set log file]:file:_files' 55 | '(--help)--webui.listen[Set the webui listening interface]:ip\:port:' 56 | '--generate-secret[Generate a read/write key]::version:(2)' 57 | '--get-ro-secret[Get the read-only key associated to a read/write key]:key:' 58 | '--server[Set Management Console address]:ip\:port:' 59 | ) 60 | _arguments $args[@] && ret=0 61 | return ret 62 | } 63 | 64 | _rslsync 65 | 66 | # Local Variables: 67 | # mode: Shell-Script 68 | # sh-indentation: 2 69 | # indent-tabs-mode: nil 70 | # sh-basic-offset: 2 71 | # End: 72 | # vim: ft=zsh sw=2 ts=2 et 73 | -------------------------------------------------------------------------------- /src/_rsvm: -------------------------------------------------------------------------------- 1 | #compdef rsvm 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2016 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for rsvm (https://github.com/sdepold/rsvm). 32 | # Adapted from Docker Machine completion by hhatto (https://github.com/ilkka) 33 | # 34 | # ------------------------------------------------------------------------------ 35 | # Authors 36 | # ------- 37 | # 38 | # * michaelmior (https://github.com/michaelmior) 39 | # 40 | # ------------------------------------------------------------------------------ 41 | 42 | # helper function for completing available rusts 43 | __rusts() { 44 | declare -a rusts_cmd 45 | rusts_cmd=($(ls "$HOME/.rsvm/versions")) 46 | _describe 'rusts' rusts_cmd 47 | } 48 | 49 | # subcommands 50 | local -a _rsvm_cmds 51 | 52 | _rsvm_cmds=( 53 | 'help:Show a help message' \ 54 | 'install:Download and install a version' \ 55 | 'uninstall:Uninstall a version' \ 56 | 'use:Activate a version for now and the future' \ 57 | 'ls:List all installed versions of rust' \ 58 | 'ls-remote:List remote versions available for install' \ 59 | 'ls-channel:Print a channel version available for install' \ 60 | ) 61 | 62 | # subcommand completion functions 63 | __uninstall() { 64 | __rusts 65 | } 66 | 67 | __use() { 68 | __rusts 69 | } 70 | 71 | # common args 72 | _arguments \ 73 | '--help[show help]' \ 74 | '--version[print the version]' \ 75 | '*:: :->command' 76 | 77 | # start rusts! 78 | if (( CURRENT == 1 )); then 79 | _describe -t commands 'rsvm command' _rsvm_cmds 80 | fi 81 | 82 | local -a _command_args 83 | case "$words[1]" in 84 | uninstall) 85 | __uninstall ;; 86 | use) 87 | __use ;; 88 | esac 89 | -------------------------------------------------------------------------------- /src/_screencapture: -------------------------------------------------------------------------------- 1 | #compdef screencapture 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for screencapture command 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Shohei Yoshida (https://github.com/syohex) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | _arguments \ 38 | '-c[force screen capture to go to the clipboard]' \ 39 | '(-i -J -s -w -W)-b[capture touch bar only non interactive modes]' \ 40 | '(-b -i -J -s -w -W)-C[capture the cursor as well as the screen only in non interactive modes]' \ 41 | '-d[display errors to the user graphically]' \ 42 | '(-b -C)-i[capture screen interactively. ctrl clipboard, space toggle mode, escape cancel]' \ 43 | '-m[only capture the main monitor]' \ 44 | '-D[screen capture or record from the display specified]:display_number:' \ 45 | '(-b -s)-o[in window capture mode, do not capture the shadow of the window]' \ 46 | '-p[screen capture will use the default settings for capture]' \ 47 | '-M[screen capture output will go to a new Mail message]' \ 48 | '-P[screen capture output will open in Preview or QuickTime Player]' \ 49 | '-I[screen capture output will open in Messages]' \ 50 | '-B[screen capture output will open in app with bundle ID]:bundle_id:' \ 51 | '(-b -i -w -W)-s[only allow mouse selection mode]' \ 52 | '-S[in window capture mode, capture the screen not the window]' \ 53 | '-J+[sets the starting of interactive capture]:style:(selection window video)' \ 54 | '(-p)-t[image format to create default is png]:format:(png pdf jpg tiff gif)' \ 55 | '-T+[take the picture after a delay of seconds]:seconds:' \ 56 | '(-b -i -s -W)-w[only allow window selection mode]' \ 57 | '(-b -i -s -w)-W[start interaction in window selection mode]' \ 58 | '-x[do not play sounds]' \ 59 | '-a[do not include windows attached to selected windows]' \ 60 | '-r[do not add dpi meta data to image]' \ 61 | '-l[capture this windows ID]:window_id:' \ 62 | '(-b -i -s -w -W)-R[capture screen rect]:rect:' \ 63 | '(-b)-v[capture video recording of the screen]::->video' \ 64 | '-V+[limits video capture to specified seconds]:seconds:' \ 65 | '-g[captures audio during a video recording using default input]' \ 66 | '-G[captures audio during a video recording using audio ID specified]' \ 67 | '-k[show clicks in video recording mode]' \ 68 | '-U[Show interactive toolbar in interactive mode]' \ 69 | '-u[present UI after screencapture is complete]' \ 70 | '*:files:_files' 71 | 72 | # Local Variables: 73 | # mode: Shell-Script 74 | # sh-indentation: 2 75 | # indent-tabs-mode: nil 76 | # sh-basic-offset: 2 77 | # End: 78 | # vim: ft=zsh sw=2 ts=2 et 79 | -------------------------------------------------------------------------------- /src/_sdd: -------------------------------------------------------------------------------- 1 | #compdef sdd 2 | # ------------------------------------------------------------------------------ 3 | # Redistribution and use in source and binary forms, with or without 4 | # modification, are permitted provided that the following conditions are met: 5 | # * Redistributions of source code must retain the above copyright 6 | # notice, this list of conditions and the following disclaimer. 7 | # * Redistributions in binary form must reproduce the above copyright 8 | # notice, this list of conditions and the following disclaimer in the 9 | # documentation and/or other materials provided with the distribution. 10 | # * Neither the name of the zsh-users nor the 11 | # names of its contributors may be used to endorse or promote products 12 | # derived from this software without specific prior written permission. 13 | # 14 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 18 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 21 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | # ------------------------------------------------------------------------------ 25 | # Description 26 | # ----------- 27 | # 28 | # Completion script for sdd (http://freshmeat.net/projects/sdd/). 29 | # 30 | # ------------------------------------------------------------------------------ 31 | # Authors 32 | # ------- 33 | # 34 | # * Massimiliano Torromeo 35 | # 36 | # ------------------------------------------------------------------------------ 37 | 38 | _values -w 'option' \ 39 | 'if[specify input file]:input file:_tilde_files' \ 40 | 'of[specify output file]:output file:_tilde_files' \ 41 | '(bs)ibs[input block size]:block size (bytes)' \ 42 | '(bs)obs[output block size]:block size (bytes)' \ 43 | '(ibs obs)bs[block size]:block size (bytes)' \ 44 | 'cbs[conversion buffer size]:buffer size (bytes)' \ 45 | 'skip[input/output initially skipped]:bytes' \ 46 | 'seek[input/output initially skipped]:bytes' \ 47 | 'count[number of input blocks to copy]:blocks' \ 48 | '-notrunc[do not truncate existing output file]' \ 49 | '-pg[print a dot on each write to indicate progress]' \ 50 | '-noerror[do not stop on error]' \ 51 | '-noerrwrite[do not write blocks not read correctly]' \ 52 | "-noseek[don't seek]" \ 53 | 'try[error retry count]:number' \ 54 | '-debug[print debugging messages]' \ 55 | '-fill[fill each record with zeros up to obs]' \ 56 | '-swab' '-block' '-unblock' '-lcase' '-ucase' '-ascii' '-ebcdic' '-ibm' \ 57 | '-help[show help]' \ 58 | '-version[show version]' 59 | 60 | # Local Variables: 61 | # mode: Shell-Script 62 | # sh-indentation: 2 63 | # indent-tabs-mode: nil 64 | # sh-basic-offset: 2 65 | # End: 66 | # vim: ft=zsh sw=2 ts=2 et 67 | -------------------------------------------------------------------------------- /src/_sdkmanager: -------------------------------------------------------------------------------- 1 | #compdef sdkmanager 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for sdkmanager(https://developer.android.com/studio/command-line/sdkmanager) 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Shohei Yoshida (https://github.com/syohex) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | _arguments \ 38 | '(- *)--help[show help message]' \ 39 | '(- *)--version[print the current version of sdkmanager]' \ 40 | '--install[install or update package]' \ 41 | '--uninstall[uninstall the listed packages]' \ 42 | '--update[all installed packages are updated to the latest version]' \ 43 | '--list_installed[all installed packages are printed out]' \ 44 | '--licenses[show and offer the option to accept licenses for all available packages]' \ 45 | '--sdk_root=[use the specified SDK root instead of the SDK containing this tool]: :_files -/' \ 46 | '--channel=[include packages in channels up to channel ID]: :((0\:Stable 1\:Beta 2\:Dev 3\:Canary))' \ 47 | '--include_obsolete[show/update obsolete packages in the package listing]' \ 48 | '--newer[show only new and/or updatable packages]' \ 49 | '--no_https[force all connections to use http rather than https]' \ 50 | '--proxy=[connect via a proxy of the given type]: :(http socks)' \ 51 | '--proxy_host=[IP or DNS address of the proxy to use]:address' \ 52 | '--proxy_port=[proxy port to connect to]:port' \ 53 | '--verbose[enable verbose output]' 54 | 55 | # Local Variables: 56 | # mode: Shell-Script 57 | # sh-indentation: 2 58 | # indent-tabs-mode: nil 59 | # sh-basic-offset: 2 60 | # End: 61 | # vim: ft=zsh sw=2 ts=2 et 62 | -------------------------------------------------------------------------------- /src/_shallow-backup: -------------------------------------------------------------------------------- 1 | #compdef shallow-backup 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2023 Aaron Lichtman -- https://github.com/alichtman 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for shallow-backup v6.4: https://github.com/alichtman/shallow-backup 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Aaron Lichtman (https://github.com/alichtman) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | _shallow-backup() { 42 | _arguments \ 43 | '(- 1 *)'{-h,--help}'[Show help and exit]' \ 44 | '(- 1 *)'{-v,--version}'[Print version]' \ 45 | '--add-dot[Add a dotfile or dotfolder to config by path]:PATH:_files' \ 46 | '--backup-all[Full back up]' \ 47 | '--backup-configs[Back up app config files]' \ 48 | '--backup-dots[Back up dotfiles]' \ 49 | '--backup-fonts[Back up installed fonts]' \ 50 | '--backup-packages[Back up package libraries]' \ 51 | '--delete-config[Delete config file]' \ 52 | '--destroy-backup[Delete backup directory]' \ 53 | '--dry-run[Do not backup or reinstall any files, just give verbose output]' \ 54 | '--new-path[Input a new back up directory path]:PATH:_files -/' \ 55 | '--no-new-backup-path-prompt[Skip setting new back up directory path prompt]' \ 56 | '--no-splash[Do not display splash screen]' \ 57 | '--reinstall-all[Full reinstallation]' \ 58 | '--reinstall-configs[Reinstall configs]' \ 59 | '--reinstall-dots[Reinstall dotfiles and dotfolders]' \ 60 | '--reinstall-fonts[Reinstall fonts]' \ 61 | '--reinstall-packages[Reinstall packages]' \ 62 | '--remote[Set remote URL for the git repo]':url \ 63 | '--edit[Open config file in $EDITOR]' \ 64 | '--show[Display config file]' 65 | } 66 | 67 | _shallow-backup 68 | 69 | # Local Variables: 70 | # mode: Shell-Script 71 | # sh-indentation: 2 72 | # indent-tabs-mode: nil 73 | # sh-basic-offset: 2 74 | # End: 75 | # vim: ft=zsh sw=2 ts=2 et 76 | -------------------------------------------------------------------------------- /src/_shellcheck: -------------------------------------------------------------------------------- 1 | #compdef shellcheck 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2021 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for shellcheck (https://github.com/koalaman/shellcheck) 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Khue Nguyen (https://github.com/Z5483) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | _arguments \ 42 | {-a,--check-sourced}'[include warnings from sourced file]' \ 43 | {-C,--color=}'[specify color]:color:(auto always never)' \ 44 | {-i,--include=}'[consider only given types of warnings]:error code' \ 45 | {-e,--exclude=}'[exclude given types of warnings]:error code' \ 46 | {-f,--format=}'[specify output format]:format:(checkstyle diff gcc json json1 quiet tty)' \ 47 | '--list-optional[list checks disabled by default]' \ 48 | "--norc[don't look for .shellcheckrc files]" \ 49 | {-o,--enable=}"[give list of optional checks to enable (or 'all')]:error code" \ 50 | {-P,--source-path=}'[specify path when looking for sourced files]:_files -/' \ 51 | {-s,--shell=}'[specify dialect]:dialect:(sh bash dash ksh)' \ 52 | {-S,--severity=}'[specify minimum severity of errors to consider]:severity:(error warning info style)' \ 53 | {-V,--version}'[print version information]' \ 54 | {-W,--wiki-link-count=}'[specify number of wiki links to show, when applicable]:number' \ 55 | {-x,--external-sources}'[allow outside sources]' \ 56 | '(- *)--help[show this usage summary and exit]' \ 57 | '*: :_files' 58 | 59 | # Local Variables: 60 | # mode: Shell-Script 61 | # sh-indentation: 2 62 | # indent-tabs-mode: nil 63 | # sh-basic-offset: 2 64 | # End: 65 | # vim: ft=zsh sw=2 ts=2 et 66 | -------------------------------------------------------------------------------- /src/_subliminal: -------------------------------------------------------------------------------- 1 | #compdef subliminal 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for Subliminal (https://github.com/Diaoul/subliminal). 7 | # 8 | # ------------------------------------------------------------------------------ 9 | # Authors 10 | # ------- 11 | # 12 | # * Julien Nicoulaud 13 | # * Shohei Yoshida 14 | # 15 | # ------------------------------------------------------------------------------ 16 | 17 | _subliminal() { 18 | typeset -A opt_args 19 | local context state line 20 | local curcontext="$curcontext" 21 | local ret=1 22 | 23 | _arguments -C \ 24 | '--addic7ed[Addic7ed configuration]:user name:' \ 25 | '--legendastv[LegendasTV configuration]:user name:' \ 26 | '--opensubtitles[OpenSubtitles configuration]:user name:' \ 27 | '--omdb[OMDB API key]:key' \ 28 | '--cache-dir[Path to the cache directory]: :_files -/' \ 29 | '--debug[Print useful information for debugging]' \ 30 | '(- : *)--version[show version number and exit]' \ 31 | '(- : *)--help[show help message and exit]' \ 32 | '1: :(cache download)' \ 33 | '*::arg:->command' \ 34 | && ret=0 35 | 36 | case "$state" in 37 | (command) 38 | case $words[1] in 39 | (cache) 40 | _arguments -C \ 41 | '(- *)--help[Show help message and exit]' \ 42 | "--clear-subliminal[Clear subliminal's cache]" \ 43 | '*: :_files' \ 44 | && ret=0 45 | ;; 46 | (download) 47 | _arguments -C \ 48 | '(-l --language)'{-l,--language}'[Language as IETF code]:lang' \ 49 | \*{-p,--provider}'[Provider to use]: :(argenteam legendastv opensubtitles opensubtitlesvip podnapisi shooter thesubdb tvsubtit)' \ 50 | \*{-r,--refiner}'[Refiner to use]: :(hash metadata omdb tvdb)' \ 51 | '(-a --age)'{-a,--age}'[Filter videos newer than AGE]:age' \ 52 | '(-d --directory)'{-d,--directory}'[Directory where to save subtitles]: :_files -/' \ 53 | '(-e --encoding)'{-e,--encoding}'[Subtitle file encoding]:encoding' \ 54 | '(-s --single)'{-s,--single}'[Save subtitle without language code in the file name]' \ 55 | '(-f --force)'{-f,--force}'[Force download even if a subtitle already exist]' \ 56 | '(-hi,--hearing-impaired)'{-hi,--hearing-impaired}'[Prefer hearing impaired subtitles]' \ 57 | '(-m --min-score)'{-m,--min-score}'[Minimum score for a subtitle to be downloaded]:integer range:' \ 58 | '(-w --max-worked)'{-w,--max-workers}'[Maximum number of threads to use]:integer range:' \ 59 | '(-z --archives -Z --no-archives)'{-z,--archives}'[Scan archives for videos]' \ 60 | '(-z --archives -Z --no-archives)'{-Z,--no-archives}'[Scan archives for videos]' \ 61 | '--verbose[Increase verbosity]' \ 62 | '(- *)--help[Show help message and exit]' \ 63 | '*: :_files' \ 64 | && ret=0 65 | ;; 66 | esac 67 | ;; 68 | esac 69 | 70 | return ret 71 | } 72 | 73 | _subliminal "$@" 74 | 75 | # Local Variables: 76 | # mode: Shell-Script 77 | # sh-indentation: 2 78 | # indent-tabs-mode: nil 79 | # sh-basic-offset: 2 80 | # End: 81 | # vim: ft=zsh sw=2 ts=2 et 82 | -------------------------------------------------------------------------------- /src/_supervisord: -------------------------------------------------------------------------------- 1 | #compdef supervisord 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Permission is hereby granted, free of charge, to any person obtaining 7 | # a copy of this software and associated documentation files (the 8 | # "Software"), to deal in the Software without restriction, including 9 | # without limitation the rights to use, copy, modify, merge, publish, 10 | # distribute, sublicense, and/or sell copies of the Software, and to 11 | # permit persons to whom the Software is furnished to do so, subject to 12 | # the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included 15 | # in all copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 18 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 21 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 22 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | # OTHER DEALINGS IN THE SOFTWARE. 24 | # ------------------------------------------------------------------------------ 25 | # Description 26 | # ----------- 27 | # 28 | # Completion script for supervisord. (https://github.com/Supervisor/supervisor) 29 | # 30 | # ------------------------------------------------------------------------------ 31 | # Authors 32 | # ------- 33 | # 34 | # * Shohei YOSHIDA (https://github.com/syohex) 35 | # 36 | # ------------------------------------------------------------------------------ 37 | 38 | _arguments \ 39 | '(-c --configuration)'{-c,--configuration}'[configuration file path]:config file:_files' \ 40 | '(-n --nodaemon)'{-n,--nodaemon}'[run in the foreground]' \ 41 | '(-s --silent)'{-s,--silent}'[no longs to stdout]' \ 42 | '(- *)'{-h,--help}'[print this usage message and exit]' \ 43 | '(- *)'{-v,--version}'[print supervisord version number and exit]' \ 44 | '(-u --user)'{-u,--user}'[run supervisord as given user]:user:_users' \ 45 | '(-m --umask)'{-m,--umask}'[use given umask for daemon subprocess]:umask' \ 46 | '(-d --directory)'{-d,--directory}'[directory to chdir to when daemonized]:directory:_files -/' \ 47 | '(-l --logfile)'{-l,--logfile}'[logfile path]:logfile:_files' \ 48 | '(-y --logfile_maxbytes)'{-y,--logfile_maxbytes}'[limit the max size of logfile]:max bytes' \ 49 | '(-z --logfile_backups)'{-z,--logfile_backups}'[number of backups to keep when max bytes reached]:number of backups' \ 50 | '(-e --loglevel)'{-e,--loglevel}'[log level]:level:(debug info warn error critical)' \ 51 | '(-j --pidfile)'{-j,--pidfile}'[pid file path]:pid file:_files' \ 52 | '(-i --identifier)'{-i,--identifier}'[identifier used for this instance of supervisord]:id' \ 53 | '(-q --childlogdir)'{-q,--childlogdir}'[the log directory for child process logs]:log dir:_files -/' \ 54 | '(-k --nocleanup)'{-k,--nocleanup}'[prevent the process from performing cleanup]' \ 55 | '(-a --minfds)'{-m,--minfds}'[the minimum number of file descriptors for start success]:min fds' \ 56 | '(-t --strip_ansi)'{-t,--strip_ansi}'[strip ansi escape codes from process output]' \ 57 | '--profile_options[profile options]:profile option:_values -s , "field" cumulative calls callers' 58 | 59 | # Local Variables: 60 | # mode: Shell-Script 61 | # sh-indentation: 2 62 | # indent-tabs-mode: nil 63 | # sh-basic-offset: 2 64 | # End: 65 | # vim: ft=zsh sw=2 ts=2 et 66 | -------------------------------------------------------------------------------- /src/_teamocil: -------------------------------------------------------------------------------- 1 | #compdef teamocil 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for Teamocil 1.4.2 (https://github.com/remiprev/teamocil). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Petr Zelenin 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | _arguments \ 42 | '--here[set up the first window in the current window]' \ 43 | '--edit[edit the YAML layout file instead of using it]' \ 44 | '--layout [use a specific layout file, instead of \`~/.teamocil/.yml\`]' \ 45 | '--list[list all available layouts in \`~/.teamocil/\`]' \ 46 | '--show[show the content of the layout file instead of executing it]' \ 47 | '--debug[show the commands Teamocil will execute instead of actually executing them]' \ 48 | '*:teamocil layouts:_files -W ~/.teamocil -g "*.yml(:r)"' 49 | 50 | # Local Variables: 51 | # mode: Shell-Script 52 | # sh-indentation: 2 53 | # indent-tabs-mode: nil 54 | # sh-basic-offset: 2 55 | # End: 56 | # vim: ft=zsh sw=2 ts=2 et 57 | -------------------------------------------------------------------------------- /src/_tmuxinator: -------------------------------------------------------------------------------- 1 | #compdef tmuxinator mux 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2010-2016 Christopher Chow 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be 14 | # included in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # 25 | # Description 26 | # ----------- 27 | # 28 | # Completion script for tmuxinator (https://github.com/tmuxinator/tmuxinator) 29 | # 30 | # ------------------------------------------------------------------------------ 31 | # Authors 32 | # ------- 33 | # 34 | # * Christopher Chow (https://github.com/Soliah) 35 | # 36 | # ------------------------------------------------------------------------------ 37 | 38 | _tmuxinator() { 39 | local commands projects 40 | commands=(${(f)"$(tmuxinator commands zsh)"}) 41 | projects=(${(f)"$(tmuxinator completions start)"}) 42 | 43 | if (( CURRENT == 2 )); then 44 | _describe -t commands "tmuxinator subcommands" commands 45 | _describe -t projects "tmuxinator projects" projects 46 | elif (( CURRENT == 3)); then 47 | case $words[2] in 48 | copy|debug|delete|open|start) 49 | _arguments '*:projects:($projects)' 50 | ;; 51 | esac 52 | fi 53 | 54 | return 55 | } 56 | 57 | _tmuxinator 58 | 59 | # Local Variables: 60 | # mode: Shell-Script 61 | # sh-indentation: 2 62 | # indent-tabs-mode: nil 63 | # sh-basic-offset: 2 64 | # End: 65 | # vim: ft=zsh sw=2 ts=2 et 66 | -------------------------------------------------------------------------------- /src/_tox: -------------------------------------------------------------------------------- 1 | #compdef tox 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for tox (https://tox.readthedocs.io). 7 | # 8 | # ------------------------------------------------------------------------------ 9 | # Authors 10 | # ------- 11 | # 12 | # * Julien Nicoulaud 13 | # 14 | # ------------------------------------------------------------------------------ 15 | 16 | 17 | (( $+functions[_tox_envs_list] )) || 18 | _tox_envs_list() { 19 | local envs; envs=($(_call_program envs $service --listenvs-all)) 20 | if [ ${#envs} -gt 0 ]; then 21 | _values -s , 'tox environments' "${envs[@]}" 22 | else 23 | _message 'tox environments (none found)' 24 | fi 25 | } 26 | 27 | _arguments \ 28 | '(- 1 *)--version[show version and exit]' \ 29 | '(- 1 *)'{-h,--help}'[show help options]' \ 30 | '(- 1 *)'{--hi,--help-ini}'[show help about ini-names]' \ 31 | '*'{-v,--verbose}'[increase verbosity of reporting output]' \ 32 | '*-q[progressively silence reporting output]' \ 33 | '(- 1 *)--showconfig[show configuration information for all environments]' \ 34 | '(- 1 *)'{-l,--listenvs}'[show list of test environments]' \ 35 | '(- 1 *)'{-a,--listenvs-all}'[show list of all defined environments]' \ 36 | '-c[config file name or directory with "tox.ini" file]:config path:_files -g "*.ini"' \ 37 | '-e[work against specified environments]: :_tox_envs_list' \ 38 | "--devenv[sets up a development environment at ENVDIR based on the env's tox configuration specified by '-e' ]: :" \ 39 | '--notest[skip invoking test commands]' \ 40 | '--sdistonly[only perform the sdist packaging activity]' \ 41 | '--skip-pkg-install[skip package installation for this run]' \ 42 | '(-p --parallel)'{-p,--parallel}'[run tox environments in parallel]: :' \ 43 | '(-o --parallel-live)'{-o,--parallel-live}'[connect to stdout while running environments]' \ 44 | '--parallel--safe-build[ensure two tox builds can run in parallel]' \ 45 | '--installpkg[ensure two tox builds can run in parallel]:package path:_files -/' \ 46 | '--develop[install package in the venv using "setup.py develop"]' \ 47 | '(-i --index-url)'{-i,--index-url}'[set indexserver url]:index server URL:_urls' \ 48 | '--pre[install pre-releases and development versions of dependencies]' \ 49 | '(-r --recreate)'{-r,--recreate}'[force recreation of virtual environments]' \ 50 | '--result-json[write a json file with detailed information about all commands and results involved]:JSON file path:_files -g "*.json"' \ 51 | '--discover[for python discovery first try the python executables under these paths]:' \ 52 | '--hashseed[set PYTHONHASHSEED to SEED before running commands]:seed' \ 53 | '*--force-dep[forces a certain version of one of the dependencies when configuring the virtual environment]:pip requirement' \ 54 | '--sitepackages[override sitepackages setting to True in all envs]' \ 55 | '--alwayscopy[override alwayscopy setting to True in all envs]' \ 56 | '--no-provision[do not perform provision, but fail and if a path was provided write provision metadata as JSON to it]:JSON file path:_files -g "*.json"' \ 57 | '(-s --skip-missing-interpreters)'{-s,--skip-missing-interpreters}'[do not fail tests for missing interpreters]: :(config true false)' \ 58 | '--workdir[tox working directory]: :_files -/' \ 59 | '*: :_guard "^-*" command positional substitution arguments' 60 | 61 | # Local Variables: 62 | # mode: Shell-Script 63 | # sh-indentation: 2 64 | # indent-tabs-mode: nil 65 | # sh-basic-offset: 2 66 | # End: 67 | # vim: ft=zsh sw=2 ts=2 et 68 | -------------------------------------------------------------------------------- /src/_ts-node: -------------------------------------------------------------------------------- 1 | #compdef ts-node 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for ts-node v10.9.1. (https://github.com/TypeStrong/ts-node) 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Shohei Yoshida (https://github.com/syohex) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | _arguments \ 38 | '(- *)'{-h,--help}'[Print help message]' \ 39 | '(- *)'{-v,--version}'[Print module version information]' \ 40 | '(- *)-vvv[Print additional version information]' \ 41 | '(-e --eval)'{-e,--eval}'[Evaluate code]:code' \ 42 | '(-p --print)'{-p,--print}'[Print result of "--eval"]' \ 43 | '*'{-r,--require}'[Require a node module before execution]:path:_files' \ 44 | '--esm[Bootstrap with the ESM loader, enabling full ESM support]' \ 45 | '--swc[Use the faster swc transpiler]' \ 46 | '(- *)--showConfig[Print resolved configuration and exit]' \ 47 | '(-T --transpileOnly)'{-T,--transpileOnly}"[Use TypeScript's faster 'transpileModule' or a third-party transpiler]" \ 48 | '(-H --compilerHost)'{-H,--compilerHost}"[Use TypeScript's compiler host API]" \ 49 | '*'{-I,--ignore}'[Override the path patterns to skip compilation]:pattern' \ 50 | '(-P --project)'{-P,--project}'[Path to TypeScript JSON project file]:path:_files' \ 51 | '(-C --compiler)'{-C,--compiler}'[Specify a custom TypeScript compiler]:compiler:_files' \ 52 | '--transpiler[Specify a third-party, non-typechecking transpiler]' \ 53 | '*'{-D,--ignoreDiagnostics}'[Ignore TypeScript warnings by diagnostic code]:code' \ 54 | '*'{-O,--compilerOptions}'[JSON object to merge with compiler options]:option' \ 55 | '--cwd[Behave as if invoked within this working directory]:dir:_files -/' \ 56 | '--files[Load "files", "include", and "exclude" from "tsconfig.json" on startup]' \ 57 | '--pretty[Use pretty diagnostic formatter]' \ 58 | '--cwdMode[Use current directory instead of script,ts for config resolution]' \ 59 | '--skipProject[Skip reading "tsconfig.json"]' \ 60 | '--skipIgnore[Skip "--ignore" checks]' \ 61 | '--emit[Emit output files into ".ts-node" directory]' \ 62 | '--scope[Scope compiler to files within "scopeDir"]' \ 63 | '--scopeDir[Directory for "--scope"]:dir:_files -/' \ 64 | '--preferTsExts[Prefer importing TypeScript files over JavaScript files]' \ 65 | '--logError[Logs TypeScript errors to stderr instead of throwing exceptions]' \ 66 | '--noExperimentalReplAwait[Disable top-level await in REPL]' \ 67 | "--experimentalSpecifierResolution[Like node's --experimental-specifier-resolution]: :(node explicit)" \ 68 | '*:: :_files' \ 69 | && return 0 70 | 71 | # Local Variables: 72 | # mode: Shell-Script 73 | # sh-indentation: 2 74 | # indent-tabs-mode: nil 75 | # sh-basic-offset: 2 76 | # End: 77 | # vim: ft=zsh sw=2 ts=2 et 78 | -------------------------------------------------------------------------------- /src/_uuidgen: -------------------------------------------------------------------------------- 1 | #compdef uuidgen 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2024 Github zsh-users - https://github.com/zsh-users 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject to 11 | # the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | # OTHER DEALINGS IN THE SOFTWARE. 23 | # ------------------------------------------------------------------------------ 24 | # Description 25 | # ----------- 26 | # 27 | # Completion script for uuidgen v15.0.2 (https://github.com/util-linux/util-linux) 28 | # 29 | # ------------------------------------------------------------------------------ 30 | # Authors 31 | # ------- 32 | # 33 | # * Shohei Yoshida (https://github.com/syohex) 34 | # 35 | # ------------------------------------------------------------------------------ 36 | 37 | case $OSTYPE in 38 | (darwin*) 39 | _arguments \ 40 | '-hdr[emit result in form suitable for copying into a header]' 41 | ;; 42 | (freebsd*) 43 | _arguments \ 44 | '-1[instructs uuidgen to not generate them in batch, but one at a time]' \ 45 | '-r[create random UUID version 4]' \ 46 | '-c[create compact UUID without hyphen]' \ 47 | '-n[number of identifiers generated]:num' \ 48 | '-o[redirect output to filename instead of stdout]:file:_files' 49 | ;; 50 | (netbsd*) 51 | _arguments \ 52 | '-1[instructs uuidgen to not generate them in batch, but one at a time]' \ 53 | '-n[number of identifiers generated]:num' \ 54 | '-s[output UUIDs as initialized C structures]' 55 | ;; 56 | (dragonfly*) 57 | _arguments \ 58 | '-1[instructs uuidgen to not generate them in batch, but one at a time]' \ 59 | '-n[number of identifiers generated]:num' \ 60 | '-o[redirect output to filename instead of stdout]:file:_files' 61 | ;; 62 | (*) 63 | _arguments \ 64 | '(- *)'{-h,--help}'[display this help]' \ 65 | '(- *)'{-V,--version}'[display version]' \ 66 | '(-r --random)'{-r,--random}'[generate random-based uuid]' \ 67 | '(-t --time)'{-t,--time}'[generate time-based uuid]' \ 68 | '(-n --namespace)'{-n,--namespace}'[generate hash-based uuid in this namespace]:namespace:(@dns @url @oid @x500)' \ 69 | '(-N --name)'{-n,--name}'[generate hash-based uuid from this name]:name' \ 70 | '(-C --count -s --sha1 -m --md5)'{-m,--md5}'[generate md5 hash]' \ 71 | '(-C --count -s --sha1 -m --md5)'{-C,--count}'[generate more uuids in loop]:count' \ 72 | '(-C --count -s --sha1 -m --md5)'{-s,--sha1}'[generate sha1 hash]' \ 73 | '(-x --hex)'{-h,--hex}'[interpret name as hex string]' 74 | ;; 75 | esac 76 | 77 | # Local Variables: 78 | # mode: Shell-Script 79 | # sh-indentation: 2 80 | # indent-tabs-mode: nil 81 | # sh-basic-offset: 2 82 | # End: 83 | # vim: ft=zsh sw=2 ts=2 et 84 | -------------------------------------------------------------------------------- /src/_wemux: -------------------------------------------------------------------------------- 1 | #compdef wemux 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2015 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for wemux (https://github.com/zolrath/wemux) 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Akira Maeda 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | _wemux() { 42 | 43 | local -a host_commands client_commands multi_host_commands 44 | 45 | host_commands=( 46 | 'start:Start the wemux server/attach to an existing wemux server.' 47 | 'attach:Attach to an existing wemux server.' 48 | 'stop:Kill the wemux server '\''wemux'\'', delete its socket.' 49 | 'users:List all users currently attached to '\''wemux'\''' 50 | 'kick:Disconnect an SSH user, remove their wemux server.' 51 | 'config:Open the wemux configuration file in your $EDITOR.' 52 | 'help:Display this screen.' 53 | 'version:shows wemux version number' 54 | ) 55 | 56 | client_commands=( 57 | 'mirror:Attach to Host in read-only mode.' 58 | 'pair:Attach to Host in pair mode, which allows editing.' 59 | 'rogue:Attach to Host in rogue mode, which allows editing and switching to windows independently from the host.' 60 | 'logout:Log out of the wemux rogueing session.' 61 | 'users:List the currently attached wemux users.' 62 | ) 63 | 64 | multi_host_commands=( 65 | 'join:Join wemux server with supplied name.' 66 | 'reset:Join default wemux server: wemux' 67 | 'list:List all currently active wemux servers.' 68 | ) 69 | 70 | if (( CURRENT == 2 )); then 71 | _describe -t host_commands 'HOST COMMANDS' host_commands 72 | _describe -t client_commands 'CLIENT COMMANDS' client_commands 73 | _describe -t multi_host_commands 'MULTI-HOST COMMANDS' multi_host_commands 74 | fi 75 | 76 | return 0 77 | } 78 | 79 | _wemux 80 | 81 | # Local Variables: 82 | # mode: Shell-Script 83 | # sh-indentation: 2 84 | # indent-tabs-mode: nil 85 | # sh-basic-offset: 2 86 | # End: 87 | # vim: ft=zsh sw=2 ts=2 et 88 | -------------------------------------------------------------------------------- /src/_wg-quick: -------------------------------------------------------------------------------- 1 | #compdef wg-quick 2 | # ------------------------------------------------------------------------------ 3 | # Description 4 | # ----------- 5 | # 6 | # Completion script for wg-quick (a script for easy managemant of wireguard 7 | # VPN tunnels) (https://www.wireguard.com/) 8 | # 9 | # ------------------------------------------------------------------------------ 10 | # Authors 11 | # ------- 12 | # 13 | # * Nicolas Lenz 14 | # 15 | # ------------------------------------------------------------------------------ 16 | 17 | # The possible modes 18 | local modes=('up\:"bring a wireguard interface up"'\ 19 | 'down\:"tear down and remove a wireguard interface"'\ 20 | 'save\:"save configuration of a running wireguard interface"') 21 | 22 | # 1: Complete mode 23 | # 2: Complete interface with all .conf files in /etc/wireguard without the filename extension. 24 | _arguments "1:mode:((${modes}))"\ 25 | '2:interface:_path_files -W /etc/wireguard -g "*.conf(^/:r)"' 26 | -------------------------------------------------------------------------------- /src/_xsel: -------------------------------------------------------------------------------- 1 | #compdef xsel 2 | # ------------------------------------------------------------------------------ 3 | # Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users 4 | # All rights reserved. 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the zsh-users nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # ------------------------------------------------------------------------------ 28 | # Description 29 | # ----------- 30 | # 31 | # Completion script for xsel (https://www.vergenet.net/~conrad/software/xsel/). 32 | # 33 | # ------------------------------------------------------------------------------ 34 | # Authors 35 | # ------- 36 | # 37 | # * Tomo Kazahaya (https://github.com/tomonacci) 38 | # 39 | # ------------------------------------------------------------------------------ 40 | 41 | local input='(-a --append -f --follow -i --input)' 42 | local operation='(-c --clear -d --delete -k --keep -x --exchange)' 43 | local selection='(-p --primary -s --secondary -b --clipboard)' 44 | 45 | _arguments -s \ 46 | $input{-a,--append}'[append standard input to the selection]' \ 47 | $input{-f,--follow}'[append to selection as standard input grows]' \ 48 | $input{-i,--input}'[read standard input into the selection]' \ 49 | {-o,--output}'[write the selection to standard output]' \ 50 | $operation{-c,--clear}'[clear the selection]' \ 51 | $operation{-d,--delete}'[request that the current selection be deleted]' \ 52 | $selection{-p,--primary}'[operate on the PRIMARY selection (default)]' \ 53 | $selection{-s,--secondary}'[operate on the SECONDARY selection]' \ 54 | $selection{-b,--clipboard}'[operate on the CLIPBOARD selection]' \ 55 | $operation{-k,--keep}'[do not modify the selections, but make the PRIMARY and SECONDARY selections persist even after the programs they were selected in exit]' \ 56 | $operation{-x,--exchange}'[exchange the PRIMARY and SECONDARY selections]' \ 57 | '--display[specify the server to use; see X(1)]:X display:_x_display' \ 58 | {-t,--selectionTimeout}'[specify the timeout in milliseconds within which the selection must be retrieved]:number' \ 59 | {-l,--logfile}'[specify the file to log errors to when detached (default $HOME/.xsel.log)]:log file:_files' \ 60 | {-n,--nodetach}'[do not detach from the controlling terminal]' \ 61 | '(- *)'{-h,--help}'[display usage information and exit]' \ 62 | {-v,--verbose}'[print informative messages; additional instances of -v raise the debugging level]' \ 63 | '(- *)--version[output version information and exit]' 64 | 65 | # Local Variables: 66 | # mode: Shell-Script 67 | # sh-indentation: 2 68 | # indent-tabs-mode: nil 69 | # sh-basic-offset: 2 70 | # End: 71 | # vim: ft=zsh sw=2 ts=2 et 72 | -------------------------------------------------------------------------------- /zsh-completions.plugin.zsh: -------------------------------------------------------------------------------- 1 | fpath+="${0:A:h}/src" 2 | --------------------------------------------------------------------------------