-
Notifications
You must be signed in to change notification settings - Fork 394
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
🐛 PAGER= does nothing #386
Comments
Hi @jyn514, quick answer: you can use Thanks though, I didn't realize before, but I see you're right that delta's behavior isn't quite the same as git's (and bat's): as you point out, they make a distinction between the env vars being not set at all (still page by default, since less sophisticated users may well not have the env var set and will expect paging) versus set to empty string (no paging). |
Thanks - yeah, that works for delta, but I don't think it works across commands (rust-lang/rust#78752 (comment)). This would be nice to have so I can switch out delta with other programs and not have to know which I'm using. |
Yes, makes sense. Thanks for this, fixed in master. |
When I set
GIT_PAGER=
, git correctly does not send output through delta. However, if I setPAGER=
, delta still sends output to a pager.My use case is that I want to get the highlighting, etc. from delta, but without launching a pager:
PAGER= GIT_PAGER=delta git diff
(rust-lang/rust#78752).The text was updated successfully, but these errors were encountered: