Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Prompt dir expansion after removing cwd's parent
- X-seq: zsh-workers 50345
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Prompt dir expansion after removing cwd's parent
- Date: Wed, 8 Jun 2022 09:14:26 +0000
- Archived-at: <https://zsh.org/workers/50345>
- Feedback-id: i425e4195:Fastmail
- List-id: <zsh-workers.zsh.org>
With 5.9:
1 % cd /tmp
2 % PS1='%~%# '
3 /tmp% mkdir foo foo/bar
4 /tmp% cd foo/bar
5 /tmp/foo/bar% rm -rf /tmp/foo
6 /tmp/foo/bar% cd ..
7 /tmp/foo/bar% cd ..
8 /tmp%
The prompts on lines 6 and 7 are wrong.
Ideally I'd like to see some indication that cwd has been deleted, or
that a path to cwd couldn't be determined, etc.. Definitely not some
apprently-valid path that points to something else than cwd.
Cheers,
Daniel
(who hasn't forgotten about the widgets shadowing docs thread)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author