From fcd007155552376fa5c482d5d650b90f9a7e172e Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Sun, 17 Jan 2016 22:06:26 -0600 Subject: added basic zsh shell completion for sway, swaybg, and swaygrab --- completions/zsh/_sway | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 completions/zsh/_sway (limited to 'completions/zsh/_sway') diff --git a/completions/zsh/_sway b/completions/zsh/_sway new file mode 100644 index 00000000..a9b1a14f --- /dev/null +++ b/completions/zsh/_sway @@ -0,0 +1,28 @@ +#compdef sway +#------------ +# Description +# ----------- +# +# Completion script for the sway window manager (http://swaywm.org) +# +# --------------------------------------------- +# Author +# ------- +# +# * Seth Barberee +# +# ------------------------------- + +_sway() { + local -a options + options=('--version:shows version' + '--help:shows help message' + '--config:Specify a config file different than $HOME/.config/sway/config' + '--validate:Check validity of the config file, then exit' + '--debug:Enables full logging, including debug information' + '--verbose:Enables more verbose logging' + '--get-socketpath:Gets the IPC socket path and prints it, then exits' + ) + _describe 'values' options + } +_sway "$@" -- cgit v1.2.3-70-g09d2