0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-19 04:01:21 +02:00

Merge pull request #1638 from RomainBelorgey/master

Use completion if file Capfile
This commit is contained in:
Robby Russell 2013-03-26 21:49:03 -07:00
commit 280c3df90e

View file

@ -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~