OS: 14.4, shell: zsh, additional software: homebrew, vim, oh-my-zsh, iTerm2, et cetera
One day I noticed that my PATH contains strange part:
/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:Vim�UnDo�:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Little Snitch.app/Contents/Components
The part is: ?Vim?UnDo? (actually there are UTF symbols instead of ?)
I grepped most parts of filesystem, home directory including files and directories starting with dot, /etc, /Library, /opt/homebrew for "UnDo", but found nothing.
It there a way to debug the process of changing PATH? Something like gathering trace or log of such changes or something like that?