Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
b39dbec7
Commit
b39dbec7
authored
Feb 03, 2015
by
Alexandros Giouzenis
Browse files
Fix tmuxinator completion for symlinked dirs
Tmuxinator start command can be ommited Fix #2812
parent
550ccca9
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/tmuxinator/_tmuxinator
View file @
b39dbec7
...
@@ -8,6 +8,8 @@ _arguments -C \
...
@@ -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
...
@@ -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
;;
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment