mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2024-05-11 05:55:17 +00:00 
			
		
		
		
	Update _capistrano
Add use of Capfile commands
This commit is contained in:
		@@ -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~
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user