ConEmu / ConEmu.github.io

Official ConEmu page on GitHub
https://conemu.github.io/
52 stars 41 forks source link

Safer way to set CWD in zsh #27

Closed borekb closed 6 years ago

borekb commented 6 years ago

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"