Bat: It got stuck after type in "bat --theme GitHub"

Created on 17 Jan 2020  路  2Comments  路  Source: sharkdp/bat

I try to change different themes ,but got no response
bat 0.12.1

_20200117161753

Most helpful comment

bat --theme [theme] doesn't set the theme; it specifies which theme to use for highlighting. What's happening is bat isn't getting stuck, but rather just waiting for some input through STDIN.

If you want to make sure that the theme is GitHub every time you run bat, you can add --theme GitHub to your bat config file (which can be found through bat --config-file).

All 2 comments

bat --theme [theme] doesn't set the theme; it specifies which theme to use for highlighting. What's happening is bat isn't getting stuck, but rather just waiting for some input through STDIN.

If you want to make sure that the theme is GitHub every time you run bat, you can add --theme GitHub to your bat config file (which can be found through bat --config-file).

Thanks a lot. I misunderstood the --theme <theme> Set the color theme for syntax highlighting.

I added environment variable in .bashrc : export BAT_THEME="GitHub", then it works :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

beruic picture beruic  路  20Comments

davidarmstronglewis picture davidarmstronglewis  路  30Comments

joeycozza picture joeycozza  路  20Comments

Aankhen picture Aankhen  路  17Comments

mre picture mre  路  21Comments