-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Currently, it is possible to disable paging in CLI via bat --paging=never
. To make this configuration global, the help page / man pages suggest overriding the pager environment variable, BAT_PAGER
. However, this behavior seems to be error-prone:
If BAT_PAGER
is overridden, it is hard to "fix" it in CLI. Normally, env variables are overridden by CLI keys. E.g. with the standard CLI conventions, if you have BAT_PAGING=never
and you'd run bat --paging-never
, you'd get paging. With the current version of bat
(0.23.0 (871abd27)
), this is impossible.
This might be low-prio because I'm actually intending to set bat
to non-paging mode by default and may not even switch back. I'm leaving this to the author's discretion. I'm also not sure if the issue is a "bug" (inconsistency with the standard CLI conventions), or simply a feature request. Triaging is welcomed
Thanks for the nice tool! ❤️