Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add zsh completion #314

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions extra/_skhd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#compdef skhd

# Zsh completion for Simple Hotkey Daemon v0.3.9 for macOS:
# https://github.com/koekeishiya/skhd

local arguments=(
'(--install-service)--install-service[Install launchd service file into ~/Library/LaunchAgents/com.koekeishiya.skhd.plist]'
'(--uninstall-service)--uninstall-service[Remove launchd service file ~/Library/LaunchAgents/com.koekeishiya.skhd.plist]'
'(--start-service)--start-service[Run skhd as a service through launchd]'
'(--restart-service)--restart-service[Restart skhd service]'
'(--stop-service)--stop-service[Stop skhd service from running]'
'(--verbose -V)'{--verbose,-V}'[Output debug information]'
'(--profile -P)'{--profile,-P}'[Output profiling information]'
'(--version -v)'{--version,-v}'[Print version number to stdout]'
'(--config -c)'{--config,-c}'[Specify location of config file]:file:_files'
'(--observe -o)'{--observe,-o}'[Output keycode and modifiers of event. Ctrl+C to quit]'
'(--reload -r)'{--reload,-r}'[Signal a running instance of skhd to reload its config file]'
'(--no-hotload -h)'{--no-hotload,-h}'[Disable system for hotloading config file]'
'(--key -k)'{--key,-k}'[Synthesize a keypress (same syntax as when defining a hotkey)]:keysym'
'(--text -t)'{--text,-t}'[Synthesize a line of text]:text'
)

_arguments -S : $arguments