Permalink
Browse files

Merge pull request #1638 from RomainBelorgey/master

Use completion if file Capfile
  • Loading branch information...
2 parents 7485924 + 20fe5e6 commit 280c3df90eb8e8df0395330c44b696bda2620b4c @robbyrussell committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/capistrano/_capistrano
@@ -1,7 +1,7 @@
#compdef cap
#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
echo "\nGenerating .cap_tasks~..." > /dev/stderr
cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~

0 comments on commit 280c3df

Please sign in to comment.