Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[advice] bat --style=plain #102

Closed
Freed-Wu opened this issue Oct 14, 2022 · 3 comments
Closed

[advice] bat --style=plain #102

Freed-Wu opened this issue Oct 14, 2022 · 3 comments

Comments

@Freed-Wu
Copy link
Contributor

I notice bat --style=plain be used in lesspipe.sh. Why not provide a configure method such as environment variable or config file to allow user bat not --style = plain? I think many people prefer using bat to see line number and file header.

Thanks.

@wofr06
Copy link
Owner

wofr06 commented Oct 17, 2022

A style can now be given to bat by setting the ENV variable BAT_STYLE or adding the option --style=xxx to the ENV variable LESSCOLORIZER. The default style remains 'plain'

@wofr06 wofr06 closed this as completed Oct 17, 2022
@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Oct 19, 2022

In fact, bat has a config named ~/.config/bat/config. So I advise to use bat's config as its default setting and only use $LESSCOLORIZE to override user's default config.

To set a default style, add the '--style=".."' option to the configuration file or export
              the BAT_STYLE environment variable

@Freed-Wu
Copy link
Contributor Author

How about #105 #106 #107 #109 #110 #111 @wofr06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants