Closed zachliu closed 4 years ago
Hi @zachliu, hm, maybe git isn't finding your delta executable? Try typing which delta
at the command line and then using that absolute path as the value for core.pager
. To double check what git is finding in the config, you can do
git config --get core.pager
Tried. Now i have
$ which delta
/usr/bin/delta
and
$ git config --get core.pager
/usr/bin/delta
but git diff
still doesn't use delta :crying_cat_face:
OK, let's get to the bottom of this! What about if you do
[core]
pager = bash -c 'echo Hello, world!'
That should result in
$ git show
Hello, world!
If that works as expected, what about if you do
[core]
pager = delta > /tmp/delta.out 2> /tmp/delta.err
Does that create the files? Is there an error?
found the problem! something is setting the env var GIT_PAGER=less
somewhere
the damn thing is i can't seem to find the something
and the somewhere
:facepalm:
OK, great! Hm, good luck finding that. Not an oh-my-zsh plugin or something like that?
It turns out tmux
is persisting my already-commented-out export GIT_PAGER=less
in .zshrc
all i needed to do was to restart tmux
¯\_(ツ)_/¯
I installed
delta
and set up everything in my.gitconfig
but it didn't work out of the box. I have to pipegit diff
intodelta
manually. Here is some relevant info:and my
.gitconfig
: