-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
--style=auto isn't the default despite documentation #1742
Labels
Comments
I'm guessing right now that |
Thanks a lot for taking the time to write a bug report. It is correct that "full" is default: https://github.com/sharkdp/bat/blob/master/src/bin/bat/app.rs#L319 So we should update the docs. |
Enselic
added a commit
that referenced
this issue
Aug 7, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug you encountered:
The manpage and
--help
output document that--style=auto
is the default behavior. But this does not appear to be the case. Instead it appears that--style=full
is the default.Example:
What did you expect to happen instead?
It should have looked like
How did you install
bat
?Nix
bat version and environment
Software version
bat 0.18.0
Operating system
Darwin 20.5.0
Command-line
Environment variables
Config file
Could not read contents of '': No such file or directory (os error 2).
[Note: Specifying
BAT_CONFIG_PATH=/dev/null
removes this diagnostic error but doesn't change the observed behavior. Maybe bat should just test ifBAT_CONFIG_PATH
is set to the empty string before trying to open it? This should still disable the config file of course]Compile time information
Less version
The text was updated successfully, but these errors were encountered: