-
-
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
bat attempts to execute itself when PAGER="bat" #383
Comments
Nice find 😄. Thank you for reporting this. You can easily work around this by setting I think we should try to fix this by treating |
Cool. I’ll be happy to try fixing this later this week if no one beats me to it :-)
…On 27 Oct 2018, 14:32 +0200, David Peter ***@***.***>, wrote:
Nice find 😄. Thank you for reporting this.
You can easily work around this by setting PAGER="bat", but using BAT_PAGER to override this. For example, you can set BAT_PAGER="less". Starting with the next version of bat (or current master), you can also set --pager="less" in bats config file.
I think we should try to fix this by treating PAGER="bat" as if PAGER had not been set (and similarly for BAT_PAGER="bat" or --pager="bat").
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Fixed in bat 0.9. |
I like having other applications use
bat
as a pager, so Iexport PAGER="bat"
in my.zshrc
. However,bat
will also use that env var and try to execute itself (recursively, endlessly).To replicate:
The text was updated successfully, but these errors were encountered: