mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 15:12:12 +00:00 
			
		
		
		
	Document how to rapidly preview theme on a file
This commit is contained in:
		
				
					committed by
					
						 David Peter
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							e1345cdc2a
						
					
				
				
					commit
					3446fdf5f2
				
			| @@ -190,6 +190,9 @@ highlighting. To select the `TwoDark` theme, call `bat` with the | ||||
| `--theme=TwoDark` option or set the `BAT_THEME` environment variable to | ||||
| `TwoDark`. Use `export BAT_THEME="TwoDark"` in your shell's startup file to | ||||
| make the change permanent. | ||||
| Want to rapidly preview the themes on a file that matters to you? Have | ||||
| [`fzf`](https://github.com/junegunn/fzf) installed? Try this: | ||||
| `bat --list-themes|fzf --preview='bat --theme={} --color=always /path/to/file'` | ||||
|  | ||||
| ### Output style | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user