Commit 280c3df9 authored by Robby Russell's avatar Robby Russell
Browse files

Merge pull request #1638 from RomainBelorgey/master

Use completion if file Capfile
parents 74859240 20fe5e6a
#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~
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment