homes/common/.oh-my-zsh/plugins/capistrano/_capistrano
Christophe Buffenoir 16b4350cdb Initial commit
2013-05-02 12:38:30 +02:00

10 lines
291 B
Text

#compdef cap
#autoload
if [[ -f config/deploy.rb || -f Capfile ]]; 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