summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-02-08 11:36:21 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-02-08 11:36:21 +0100
commit6038bf59248ee850b3d2f8aa390c195ee7fd08d3 (patch)
treea5f1922efbe98771df308956b89af40c9d2067da
parentuse tabs (diff)
parentfixed config help (diff)
downloadsway-6038bf59248ee850b3d2f8aa390c195ee7fd08d3.tar.gz
sway-6038bf59248ee850b3d2f8aa390c195ee7fd08d3.tar.zst
sway-6038bf59248ee850b3d2f8aa390c195ee7fd08d3.zip
Merge pull request #486 from SethBarberee/sway-zsh
refactored sway command to include single dash
-rw-r--r--completions/zsh/_sway22
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 @@
12# * Seth Barberee <seth.barberee@gmail.com> 12# * Seth Barberee <seth.barberee@gmail.com>
13# 13#
14# ------------------------------- 14# -------------------------------
15 15_arguments -s \
16_sway() { 16 '(-v --version)'{-v,--version}'[shows version]' \
17 local -a options 17 '(-h --help)'{-h,--help}'[shows help message]' \
18 options=('--version:shows version' 18 '(-c --config)'{-c,--config}'[Specify a config file]:files:_files' \
19 '--help:shows help message' 19 '(-C --validate)'{-C,--validate}'[Check validity of the config file, then exit]' \
20 '--config:Specify a config file different than $HOME/.config/sway/config' 20 '(-d --debug)'{-d,--debug}'[Enables full logging, including debug information]' \
21 '--validate:Check validity of the config file, then exit' 21 '(-v --verbose)'{-v,--verbose}'[Enables more verbose logging]' \
22 '--debug:Enables full logging, including debug information' 22 '(--get-socketpath)'--get-socketpath'[Gets the IPC socket path and prints it, then exits]'
23 '--verbose:Enables more verbose logging'
24 '--get-socketpath:Gets the IPC socket path and prints it, then exits'
25 )
26 _describe 'values' options
27 }
28_sway "$@"