"git diff" freezes under zsh on macOS 13.0.x
rnhurt opened this issue · 1 comments
rnhurt commented
I'm seeing an issue with vimpager
, zsh
, and git
. Trying to do a git diff
with vimpager
set as my $PAGER causes the output to halt completely. I have to CTRL-Z and kill the job to get my shell back.
Steps
- set PAGER:
export PAGER=vimpager
- Get diff:
git diff .
- Notice the shell freezes and the prompt never comes back
- Kill the diff:
<CTRL-Z>; kill %1
- set PAGER:
export PAGER=
- Get diff:
git diff .
- Notice that you get the diff you expected and the prompt comes back as normal
Config
- macOS 13.0.1 (M1)
- vimpager 2.06-381-g2d3af2b (standalone, shell=/bin/dash) - built from source
- zsh zsh 5.8.1 (x86_64-apple-darwin22.0)
- omz master (18e7e5d)
rnhurt commented
Ah, I think I found the problem. I originally compiled the project with no config at all, and it picked up the dash
shell. Recompiling with POSIX_SHELL=zsh
seemed to fix the problem I was having with git
.