The new implementation adds to the precmd hook function instead of overwriting it. This makes it work better with zsh prompts / themes themes that often customize precmd.
Tested in MSYS2 + zsh + this ConEmu task:
set CHERE_INVOKING=1 & set MSYSTEM=MINGW64 & set MSYS2_PATH_TYPE=inherit & set "PATH=%ConEmuDrive%\msys64\mingw64\bin;%ConEmuDrive%\msys64\usr\bin;%PATH%" & %ConEmuBaseDirShort%\conemu-msys2-64.exe -new_console:p %ConEmuDrive%\msys64\usr\bin\zsh.exe --login -i -new_console:C:"%ConEmuDrive%\msys64\msys2.ico"
The new implementation adds to the
precmd
hook function instead of overwriting it. This makes it work better with zsh prompts / themes themes that often customizeprecmd
.Tested in MSYS2 + zsh + this ConEmu task: