diff options
| author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-02-08 11:36:21 +0100 | 
|---|---|---|
| committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-02-08 11:36:21 +0100 | 
| commit | 6038bf59248ee850b3d2f8aa390c195ee7fd08d3 (patch) | |
| tree | a5f1922efbe98771df308956b89af40c9d2067da /completions | |
| parent | 6793648f8e9f2179772d6c9578a21ff86215528c (diff) | |
| parent | 4cb30880ca7bdcfdace4bc7dfef44baa3672e79f (diff) | |
| download | sway-6038bf59248ee850b3d2f8aa390c195ee7fd08d3.tar.xz | |
Merge pull request #486 from SethBarberee/sway-zsh
refactored sway command to include single dash
Diffstat (limited to 'completions')
| -rw-r--r-- | completions/zsh/_sway | 22 | 
1 files changed, 8 insertions, 14 deletions
| diff --git a/completions/zsh/_sway b/completions/zsh/_sway index a9b1a14f..bab90fbf 100644 --- a/completions/zsh/_sway +++ b/completions/zsh/_sway @@ -12,17 +12,11 @@  # * Seth Barberee <seth.barberee@gmail.com>  #  # ------------------------------- - -_sway() { -	local -a options -	options=('--version:shows version' -		'--help:shows help message' -		'--config:Specify a config file different than $HOME/.config/sway/config' -		'--validate:Check validity of the config file, then exit' -		'--debug:Enables full logging, including debug information' -		'--verbose:Enables more verbose logging' -		'--get-socketpath:Gets the IPC socket path and prints it, then exits' -		) -	_describe 'values' options -	} -_sway "$@" +_arguments -s \ +	'(-v --version)'{-v,--version}'[shows version]' \ +	'(-h --help)'{-h,--help}'[shows help message]' \ +	'(-c --config)'{-c,--config}'[Specify a config file]:files:_files' \ +	'(-C --validate)'{-C,--validate}'[Check validity of the config file, then exit]' \ +	'(-d --debug)'{-d,--debug}'[Enables full logging, including debug information]' \ +	'(-v --verbose)'{-v,--verbose}'[Enables more verbose logging]' \ +	'(--get-socketpath)'--get-socketpath'[Gets the IPC socket path and prints it, then exits]' | 
