missing prompt in invalid dir
vgropp opened this issue · comments
Volker Gropp commented
Describe the bug
there is no prompt at all when your cwd does not exist or you don't have any permissions
To Reproduce
Steps to reproduce the behavior:
- mkdir test
- cd test
- rmdir test in another shell
- no prompt at all in first shell
a different use case:
- su - # switches to /root
- su # changes user but cwd will be /root with usually no permissions
- no prompt at all
Expected behavior
a working prompt with the "no permission" char
Environment (please complete the following information):
- OS: linux
- Architecture: amd64
- Shell: zsh