rkitover / vimpager

Use Vim as PAGER

Home Page:http://www.vim.org/scripts/script.php?script_id=1723

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"git diff" freezes under zsh on macOS 13.0.x

rnhurt opened this issue · comments

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

  1. set PAGER: export PAGER=vimpager
  2. Get diff: git diff .
  3. Notice the shell freezes and the prompt never comes back
  4. Kill the diff: <CTRL-Z>; kill %1
  5. set PAGER: export PAGER=
  6. Get diff: git diff .
  7. 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)

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.