mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 00:51:56 +00:00 
			
		
		
		
	Clarify stdin syntax highlighting in the README
Clarify the requirements for automatic syntax highlighting when reading input from stdin. Fixes #1028.
This commit is contained in:
		
				
					committed by
					
						
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							b8ffb8d463
						
					
				
				
					commit
					fca83bf79a
				
			@@ -62,7 +62,9 @@ Display multiple files at once
 | 
			
		||||
> bat src/*.rs
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Read from stdin, determine the syntax automatically
 | 
			
		||||
Read from stdin, determine the syntax automatically (note, this will only work
 | 
			
		||||
if the syntax can be determined from the initial line of the file, usually
 | 
			
		||||
through a shebang such as `#!/bin/sh`)
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
> curl -s https://sh.rustup.rs | bat
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user