diff options
author | 2016-01-26 22:25:17 +0100 | |
---|---|---|
committer | 2016-01-26 22:25:17 +0100 | |
commit | a97b325b26d64db1ca695c58fa729797f1a1e0a0 (patch) | |
tree | 773e4cf999cd2d9b41189df9b96544cf3135987b /completions/zsh | |
parent | Merge pull request #476 from christophgysin/cairo_set_source_u32 (diff) | |
parent | refactored to include single dash options (diff) | |
download | sway-a97b325b26d64db1ca695c58fa729797f1a1e0a0.tar.gz sway-a97b325b26d64db1ca695c58fa729797f1a1e0a0.tar.zst sway-a97b325b26d64db1ca695c58fa729797f1a1e0a0.zip |
Merge pull request #478 from SethBarberee/swaymsg-zsh
refactored to include single dash options
Diffstat (limited to 'completions/zsh')
-rw-r--r-- | completions/zsh/_swaymsg | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/completions/zsh/_swaymsg b/completions/zsh/_swaymsg index 5d9277c4..4baff92f 100644 --- a/completions/zsh/_swaymsg +++ b/completions/zsh/_swaymsg | |||
@@ -12,15 +12,9 @@ | |||
12 | # * Seth Barberee <seth.barberee@gmail.com> | 12 | # * Seth Barberee <seth.barberee@gmail.com> |
13 | # | 13 | # |
14 | # ------------------------------------------- | 14 | # ------------------------------------------- |
15 | 15 | _arguments -s \ | |
16 | _swaymsg() { | 16 | '(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \ |
17 | local -a options | 17 | '(-h --help)'{-h,--help}'[Shows help message]' \ |
18 | options=('--version:shows version' | 18 | '(-q --quiet)'{-q,--quiet}'[Sends the IPC message but does not print the response from sway]' \ |
19 | '--help:shows help message' | 19 | '(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK]' \ |
20 | '--quiet:sends the IPC message but does not print the response from sway' | 20 | '(-t --type)'{-t,--type}'[Specify the type of IPC message. Tab completion still coming so use the man page instead]' |
21 | '--socket:Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK' | ||
22 | '--type:Specify the type of IPC message. Tab completion still coming so use the man page instead' | ||
23 | ) | ||
24 | _describe 'values' options | ||
25 | } | ||
26 | _swaymsg "$@" | ||