Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
280c3df9
Commit
280c3df9
authored
Mar 26, 2013
by
Robby Russell
Browse files
Merge pull request #1638 from RomainBelorgey/master
Use completion if file Capfile
parents
74859240
20fe5e6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/capistrano/_capistrano
View file @
280c3df9
#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~
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment