git log | bat looks nice, but PAGER=bat git log looks bland
#2329
Replies: 4 comments 4 replies
-
|
You can try telling |
Beta Was this translation helpful? Give feedback.
-
|
You know, thinking about it, I don't see how it can be due to that bug you mention. If I do Somehow, when run through a config (eg with So, it seems like it is doing something different between those two cases. |
Beta Was this translation helpful? Give feedback.
-
|
OK, I found something. If I use the following git command then it works the same with either However, If I use The and the So, the escape sequences in the --no-decorate output is messing bat up, and The only way to get good output for both PAGER and pipe, is to use both --no-decorate and --no-color. So, it is some additional differences in the output of |
Beta Was this translation helpful? Give feedback.
-
|
Having bat as my pager messes up my other aliases, so I put this in my .gitconfig: ` ` And it is run by typing in |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
(Sorry, I'm new to bat and OSX)
If I do
git log | bat, I get nice colours, notably 'commit', 'Author', and 'Date' are in red, hash is purple, comment in orange. eg:However, if I do
git -c core.pager=bat log, it only has very limited colours...commitand the hash itself at yellow, the branch name (egHEAD ->) are cyan, and any local branch name is green; but more importantly, the rest of the commit is some kind of ugly grey colour:I just noticed that
$ git config -l --globalalso uses bat, but the colour highlighting is all 'bland'Any ideas what's going on?
Beta Was this translation helpful? Give feedback.
All reactions