mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 21:31:19 +08:00 
			
		
		
		
	Merge pull request #2421 from LFDM/rails_plugin_fix
Fixes _rails_command in new rails plugin
This commit is contained in:
		
						commit
						d0dcedcde2
					
				@ -1,10 +1,10 @@
 | 
			
		||||
function _rails_command () {
 | 
			
		||||
  if [ -e "script/server" ]; then
 | 
			
		||||
    ruby script/$@
 | 
			
		||||
  if [ -e "bin/rails" ]; then
 | 
			
		||||
    bin/rails $@
 | 
			
		||||
  elif [ -e "script/rails" ]; then
 | 
			
		||||
    ruby script/rails $@
 | 
			
		||||
  elif [ -e "bin/rails" ]; then
 | 
			
		||||
    bin/rails $@
 | 
			
		||||
  elif [ -e "script/server" ]; then
 | 
			
		||||
    ruby script/$@
 | 
			
		||||
  else
 | 
			
		||||
    rails $@
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user