aboutsummaryrefslogtreecommitdiff
path: root/completions/zsh/_swaymsg
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-26 22:25:17 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-26 22:25:17 +0100
commita97b325b26d64db1ca695c58fa729797f1a1e0a0 (patch)
tree773e4cf999cd2d9b41189df9b96544cf3135987b /completions/zsh/_swaymsg
parentf1e1ba0a5689966984f71a00572b89ea2d26f06b (diff)
parent1ce1fa3d18857fe409b6367fb5dd8421a4c0e88b (diff)
Merge pull request #478 from SethBarberee/swaymsg-zsh
refactored to include single dash options
Diffstat (limited to 'completions/zsh/_swaymsg')
-rw-r--r--completions/zsh/_swaymsg18
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 @@
# * Seth Barberee <seth.barberee@gmail.com>
#
# -------------------------------------------
-
-_swaymsg() {
- local -a options
- options=('--version:shows version'
- '--help:shows help message'
- '--quiet:sends the IPC message but does not print the response from sway'
- '--socket:Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK'
- '--type:Specify the type of IPC message. Tab completion still coming so use the man page instead'
- )
- _describe 'values' options
- }
-_swaymsg "$@"
+_arguments -s \
+ '(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \
+ '(-h --help)'{-h,--help}'[Shows help message]' \
+ '(-q --quiet)'{-q,--quiet}'[Sends the IPC message but does not print the response from sway]' \
+ '(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK]' \
+ '(-t --type)'{-t,--type}'[Specify the type of IPC message. Tab completion still coming so use the man page instead]'