romkatv / zsh4humans

A turnkey configuration for Zsh
MIT License
1.81k stars 116 forks source link

Terminal Interface faulty upon shell-init error #322

Open Semnodime opened 3 months ago

Semnodime commented 3 months ago
# change to a newly created dir
mkdir /tmp/foo
cd /tmp/foo

# delete it while inside
rm -r /tmp/foo

# some debugging (not required to trigger the bug)
mkdir -p /tmp/foo/bar
pwd  # sugests we are still in /tmp/foo
ls -lah  # suggests we are not in /tmp/foo

# trigger error
exec zsh # shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

# observation: terminal interface is broken from now on
romkatv commented 3 months ago

Thanks for the bug report. If you send a clean PR with a fix, I'll merge it.