mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Use bash syntax highlighting
This commit is contained in:
1 parent
a736889ef1
commit
c9c3341a38
1 file changed
+1
-1
@@ -422,7 +422,7 @@ If you make use of the dark mode feature in macOS, you might want to configure `
|
|||||||
theme based on the OS theme. The following snippet uses the `default` theme when in the light mode
|
theme based on the OS theme. The following snippet uses the `default` theme when in the light mode
|
||||||
and the `GitHub` theme when in the dark mode.
|
and the `GitHub` theme when in the dark mode.
|
||||||
|
|
||||||
```
|
```bash
|
||||||
alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
|
alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user