mirror of
https://github.com/swaywm/sway.git
synced 2025-11-27 06:59:53 -05:00
added basic zsh shell completion for sway, swaybg, and swaygrab
This commit is contained in:
parent
fe241126bb
commit
fcd0071555
5 changed files with 90 additions and 1 deletions
28
completions/zsh/_sway
Normal file
28
completions/zsh/_sway
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#compdef sway
|
||||
#------------
|
||||
# Description
|
||||
# -----------
|
||||
#
|
||||
# Completion script for the sway window manager (http://swaywm.org)
|
||||
#
|
||||
# ---------------------------------------------
|
||||
# Author
|
||||
# -------
|
||||
#
|
||||
# * Seth Barberee <seth.barberee@gmail.com>
|
||||
#
|
||||
# -------------------------------
|
||||
|
||||
_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 "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue