Skip to content

Commit

Permalink
Merge pull request #3541 from agios/tmuxinator
Browse files Browse the repository at this point in the history
Tmuxinator plugin improvements
  • Loading branch information
robbyrussell committed Feb 22, 2015
2 parents 983c0c9 + b39dbec commit 6809b42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/tmuxinator/_tmuxinator
Expand Up @@ -8,6 +8,8 @@ _arguments -C \
'1: :->cmds' \
'2:: :->args' && ret=0

_configs=(${$(echo ~/.tmuxinator/*.yml):r:t})

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

0 comments on commit 6809b42

Please sign in to comment.