mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
getting the projects name correctly and making compdef to work with mux alias
This commit is contained in:
parent
e30a1243dc
commit
4e7b0fe083
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
#compdef tmuxinator
|
#compdef tmuxinator mux
|
||||||
#autoload
|
#autoload
|
||||||
|
|
||||||
local curcontext="$curcontext" state line ret=1
|
local curcontext="$curcontext" state line ret=1
|
||||||
|
@ -25,7 +25,7 @@ case $state in
|
||||||
args)
|
args)
|
||||||
case $line[1] in
|
case $line[1] in
|
||||||
start|open|copy|delete)
|
start|open|copy|delete)
|
||||||
_configs=(`tmuxinator list | sed -n 's/^[ \t]\+//p'`)
|
_configs=(`find ~/.tmuxinator/ -name \*.yml | cut -d/ -f5 | sed s:.yml::g`)
|
||||||
_values 'configs' $_configs
|
_values 'configs' $_configs
|
||||||
ret=0
|
ret=0
|
||||||
;;
|
;;
|
||||||
|
@ -33,4 +33,4 @@ case $state in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
Loading…
Reference in a new issue