mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-03 08:31:55 +00:00 
			
		
		
		
	Merge branch 'master' into add-gdscript-support
This commit is contained in:
		@@ -240,6 +240,13 @@ alias -g -- -h='-h 2>&1 | bat --language=help --style=plain'
 | 
				
			|||||||
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
 | 
					alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					For `fish`, you can use abbreviations:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```fish
 | 
				
			||||||
 | 
					abbr -a --position anywhere -- --help '--help | bat -plhelp'
 | 
				
			||||||
 | 
					abbr -a --position anywhere -- -h '-h | bat -plhelp'
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This way, you can keep on using `cp --help`, but get colorized help pages.
 | 
					This way, you can keep on using `cp --help`, but get colorized help pages.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Be aware that in some cases, `-h` may not be a shorthand of `--help` (for example with `ls`).
 | 
					Be aware that in some cases, `-h` may not be a shorthand of `--help` (for example with `ls`).
 | 
				
			||||||
@@ -684,7 +691,7 @@ theme based on the OS theme. The following snippet uses the `default` theme when
 | 
				
			|||||||
and the `GitHub` theme when in the _light mode_.
 | 
					and the `GitHub` theme when in the _light mode_.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
 | 
					alias cat="bat --theme auto:system --theme-dark default --theme-light GitHub"
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user