mirror of https://github.com/sharkdp/bat
Allow specifying the theme via the `BAT_THEME` environment variable
The `--theme` command line option stills takes precedence and this change preserves how errors are handled when it's used: If a theme name that doesn't exist is specified using the argument, this error is fatal. However, if a theme that doesn't exist is specified using the environment variable, the error is logged to `stderr` and the "Default" theme is loaded as a fallback.pull/192/head
parent
6b57f4eebc
commit
c68aa0f424
Loading…
Reference in New Issue