Hopla ! Visiblement, Elvish n’utilise pas de sous-shell, et toutes les opération cd sont transférée…
This commit is contained in:
		
							parent
							
								
									2644129e08
								
							
						
					
					
						commit
						2ef9748b0e
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,7 @@
 | 
			
		|||
edit:add-var updatecarapace~ []{
 | 
			
		||||
  var wd = $E:HOME/Documents/OtherGo/github.com/rsteube/carapace-bin
 | 
			
		||||
  var bd = $E:HOME/Go/bin
 | 
			
		||||
  var cur = (pwd)
 | 
			
		||||
  var wd  = $E:HOME/Documents/OtherGo/github.com/rsteube/carapace-bin
 | 
			
		||||
  var bd  = $E:HOME/Go/bin
 | 
			
		||||
  cd $wd
 | 
			
		||||
  git pull
 | 
			
		||||
  cd cmd/carapace
 | 
			
		||||
| 
						 | 
				
			
			@ -9,4 +10,5 @@ edit:add-var updatecarapace~ []{
 | 
			
		|||
  if (bool ?(test -f carapace)) {
 | 
			
		||||
    mv -f carapace $bd
 | 
			
		||||
  }
 | 
			
		||||
  cd $cur
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue