mirror of
				https://github.com/taigrr/yq
				synced 2025-01-18 04:53:17 -08:00 
			
		
		
		
	Fixed readme for bash docker alias to bash function, thanks @dead10ck
This commit is contained in:
		
							parent
							
								
									94148e4398
								
							
						
					
					
						commit
						7b54a44fcf
					
				| @ -60,10 +60,12 @@ Run commands interactively: | |||||||
| docker run --rm -it -v ${PWD}:/workdir mikefarah/yq sh | docker run --rm -it -v ${PWD}:/workdir mikefarah/yq sh | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| It can be useful to have a bash alias to avoid typing the whole docker command: | It can be useful to have a bash function to avoid typing the whole docker command: | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| alias yq="docker run --rm -v ${PWD}:/workdir mikefarah/yq yq" | yq() { | ||||||
|  |   docker run --rm -i -v ${PWD}:/workdir mikefarah/yq yq $@ | ||||||
|  | } | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ## Features | ## Features | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user