aboutsummaryrefslogtreecommitdiffstats
path: root/completions
diff options
context:
space:
mode:
authorLibravatar Seth Barberee <seth.barberee@gmail.com>2016-01-26 15:18:09 -0600
committerLibravatar Seth Barberee <seth.barberee@gmail.com>2016-01-26 15:22:17 -0600
commit1ce1fa3d18857fe409b6367fb5dd8421a4c0e88b (patch)
tree773e4cf999cd2d9b41189df9b96544cf3135987b /completions
parentMerge pull request #476 from christophgysin/cairo_set_source_u32 (diff)
downloadsway-1ce1fa3d18857fe409b6367fb5dd8421a4c0e88b.tar.gz
sway-1ce1fa3d18857fe409b6367fb5dd8421a4c0e88b.tar.zst
sway-1ce1fa3d18857fe409b6367fb5dd8421a4c0e88b.zip
refactored to include single dash options
Diffstat (limited to 'completions')
-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 @@
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 "$@"