diff options
author | Robby Russell <robby@planetargon.com> | 2013-03-26 21:49:03 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-03-26 21:49:03 -0700 |
commit | 280c3df90eb8e8df0395330c44b696bda2620b4c (patch) | |
tree | 15a3f53b684fcf0a20aeade70e0c868b0730b140 /plugins/capistrano | |
parent | 74859240be6d1beaa02f7aa48a221626d8bda6f2 (diff) | |
parent | 20fe5e6a570fa5d9dfd246d020ecc2c18427405f (diff) | |
download | zsh-280c3df90eb8e8df0395330c44b696bda2620b4c.tar.gz zsh-280c3df90eb8e8df0395330c44b696bda2620b4c.tar.bz2 zsh-280c3df90eb8e8df0395330c44b696bda2620b4c.zip |
Merge pull request #1638 from RomainBelorgey/master
Use completion if file Capfile
Diffstat (limited to 'plugins/capistrano')
-rw-r--r-- | plugins/capistrano/_capistrano | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/capistrano/_capistrano b/plugins/capistrano/_capistrano index cf6b50c7f..1002dad96 100644 --- a/plugins/capistrano/_capistrano +++ b/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~ |