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

jkaan picture jkaan  路  3Comments

niedzielski picture niedzielski  路  3Comments

lilyball picture lilyball  路  3Comments

yum-feng picture yum-feng  路  3Comments

gAmUssA picture gAmUssA  路  3Comments