Add completions for the commands. Thanks @MenkeTechnologies!

This commit is contained in:
Sebastian Gniazdowski 2020-09-03 16:19:38 +02:00
parent 627e8aff06
commit 851dbd7f60
5 changed files with 70 additions and 0 deletions

16
_zc Normal file
View file

@ -0,0 +1,16 @@
#compdef zc
local arguments
arguments=(
{-h,--help}'[this message]'
{-i,--id}'[ID (number) of Zsh session]:ID'
{-n,--name}'[NAME of Zsh session]:NAME'
{-q,--quiet}'[dont output status messages]'
{-v,--verbose}'[output more status messages]'
{-a,--ask}'[ask for command (if not provided) and session (etc.)]'
{-r,--raw}'[raw input (for scripts) - a quoted string, e.g. ls a dir]'
'*:filename:_files'
)
_arguments -s $arguments

14
_zc-all Normal file
View file

@ -0,0 +1,14 @@
#compdef zc-all
local arguments
arguments=(
{-h,--help}'[this message]'
{-q,--quiet}'[dont output status messages]'
{-v,--verbose}'[output more status messages]'
{-a,--ask}'[ask for command (if not provided)]'
{-f,--force}'[send also to busy sessions; command can time out]'
'*:filename:_files'
)
_arguments -s $arguments

14
_zc-bg-notify Normal file
View file

@ -0,0 +1,14 @@
#compdef zc-bg-notify
local arguments
arguments=(
{-h,--help}'[this message]'
{-q,--quiet}'[dont output status messages about target sessions]'
{-v,--verbose}'[output more status messages]'
{-a,--ask}'[ask for notification text (if not provided)]'
{-f,--force}'[send also to busy sessions; notification can time-out]'
'*:filename:_files'
)
_arguments -s $arguments

13
_zc-rename Normal file
View file

@ -0,0 +1,13 @@
#compdef zc-rename
local arguments
arguments=(
{-h,--help}'[this message]'
{-i,--id}'[(number) of Zsh session]:ID'
{-n,--name}'[NAME of Zsh session]:NAME'
{-q,--quiet}'[dont output status messages]'
'*:filename:_files'
)
_arguments -s $arguments

13
_zc-take Normal file
View file

@ -0,0 +1,13 @@
#compdef zc-take
local arguments
arguments=(
{-h,--help}'[this message]'
{-i,--id}'[(number) of Zsh session]:ID'
{-n,--name}'[NAME of Zsh session]:NAME'
{-q,--quiet}'[dont output status messages]'
'*:filename:_files'
)
_arguments -s $arguments