Created
July 26, 2017 17:02
-
-
Save gcman105/ba7285ed69bc1c4bc9f00a7dac9a9f3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_tmuxinator() { | |
local commands projects | |
commands=(${(f)"$(tmuxinator commands zsh)"}) | |
projects=(${(f)"$(tmuxinator completions start)"}) | |
if (( CURRENT == 2 )); then | |
_describe -t commands "tmuxinator subcommands" commands | |
_describe -t projects "tmuxinator projects" projects | |
elif (( CURRENT == 3)); then | |
case $words[2] in | |
copy|debug|delete|open|start) | |
_arguments '*:projects:($projects)' | |
;; | |
esac | |
fi | |
return | |
} | |
compdef _tmuxinator tmuxinator mux | |
alias mux="tmuxinator" | |
# Local Variables: | |
# mode: Shell-Script | |
# sh-indentation: 2 | |
# indent-tabs-mode: nil | |
# sh-basic-offset: 2 | |
# End: | |
# vim: ft=zsh sw=2 ts=2 et |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment