diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-01-19 18:50:12 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-01-19 18:50:12 -0500 |
commit | a6b19988c54272dbd9366a7e8fa6b8c459541cb6 (patch) | |
tree | 5991fa5cb3c5003b003952365356ad123d3048d4 /completions/zsh/_swaymsg | |
parent | Merge pull request #448 from colemickens/libinput (diff) | |
parent | added basic zsh shell completion for sway, swaybg, and swaygrab (diff) | |
download | sway-a6b19988c54272dbd9366a7e8fa6b8c459541cb6.tar.gz sway-a6b19988c54272dbd9366a7e8fa6b8c459541cb6.tar.zst sway-a6b19988c54272dbd9366a7e8fa6b8c459541cb6.zip |
Merge pull request #440 from SethBarberee/zsh-completions
Basic Zsh auto-completion for --options
Diffstat (limited to 'completions/zsh/_swaymsg')
-rw-r--r-- | completions/zsh/_swaymsg | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/completions/zsh/_swaymsg b/completions/zsh/_swaymsg new file mode 100644 index 00000000..5d9277c4 --- /dev/null +++ b/completions/zsh/_swaymsg | |||
@@ -0,0 +1,26 @@ | |||
1 | #compdef swaymsg | ||
2 | #----------------- | ||
3 | # Description | ||
4 | # ----------- | ||
5 | # | ||
6 | # Completion script for swaymsg in sway wm (http://swaywm.org) | ||
7 | # | ||
8 | # ------------------------------------------------------ | ||
9 | # Author | ||
10 | # -------- | ||
11 | # | ||
12 | # * Seth Barberee <seth.barberee@gmail.com> | ||
13 | # | ||
14 | # ------------------------------------------- | ||
15 | |||
16 | _swaymsg() { | ||
17 | local -a options | ||
18 | options=('--version:shows version' | ||
19 | '--help:shows help message' | ||
20 | '--quiet:sends the IPC message but does not print the response from sway' | ||
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 "$@" | ||