1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 13:50:09 +00:00

Update _capistrano

Add use of Capfile commands
This commit is contained in:
RomainBelorgey 2013-03-01 18:33:38 +01:00
parent fce68bbba0
commit 20fe5e6a57

View file

@ -1,7 +1,7 @@
#compdef cap #compdef cap
#autoload #autoload
if [ -f config/deploy.rb ]; then if [[ -f config/deploy.rb || -f Capfile ]]; then
if [[ ! -f .cap_tasks~ || config/deploy.rb -nt .cap_tasks~ ]]; then if [[ ! -f .cap_tasks~ || config/deploy.rb -nt .cap_tasks~ ]]; then
echo "\nGenerating .cap_tasks~..." > /dev/stderr echo "\nGenerating .cap_tasks~..." > /dev/stderr
cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~ cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~