oh-my-zsh/plugins/capistrano/_capistrano
RomainBelorgey 20fe5e6a57 Update _capistrano
Add use of Capfile commands
2013-03-01 18:33:38 +01:00

11 lines
291 B
Plaintext

#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