mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-30 11:44:08 +01:00
cfeb57024d
Thanks @docwhat
11 lines
275 B
Plaintext
11 lines
275 B
Plaintext
#compdef cap
|
|
#autoload
|
|
|
|
if [ -f config/deploy.rb ]; then
|
|
if [[ ! -f .cap_tasks~ || config/deploy.rb -nt .cap_tasks~ ]]; then
|
|
echo "\nGenerating .cap_tasks~..." > /dev/stderr
|
|
cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~
|
|
fi
|
|
compadd `cat .cap_tasks~`
|
|
fi
|