1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-26 07:40:07 +00:00

Merge pull request #3541 from agios/tmuxinator

Tmuxinator plugin improvements
This commit is contained in:
Robby Russell 2015-02-22 10:14:28 -08:00
commit 6809b42b65

View file

@ -8,6 +8,8 @@ _arguments -C \
'1: :->cmds' \ '1: :->cmds' \
'2:: :->args' && ret=0 '2:: :->args' && ret=0
_configs=(${$(echo ~/.tmuxinator/*.yml):r:t})
case $state in case $state in
cmds) cmds)
_values "tmuxinator command" \ _values "tmuxinator command" \
@ -21,13 +23,13 @@ case $state in
"list[list all existing projects]" \ "list[list all existing projects]" \
"doctor[look for problems in your configuration]" \ "doctor[look for problems in your configuration]" \
"help[shows this help document]" \ "help[shows this help document]" \
"version[shows tmuxinator version number]" "version[shows tmuxinator version number]" \
$_configs
ret=0 ret=0
;; ;;
args) args)
case $line[1] in case $line[1] in
start|open|copy|delete|debug) start|open|copy|delete|debug)
_configs=(`find ~/.tmuxinator -name \*.yml | cut -d/ -f5 | sed s:.yml::g`)
[[ -n "$_configs" ]] && _values 'configs' $_configs [[ -n "$_configs" ]] && _values 'configs' $_configs
ret=0 ret=0
;; ;;