mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-11 08:20:09 +00:00
20fe5e6a57
Add use of Capfile commands
10 lines
291 B
Text
10 lines
291 B
Text
#compdef cap
|
|
#autoload
|
|
|
|
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~
|
|
fi
|
|
compadd `cat .cap_tasks~`
|
|
fi
|