https://unix.stackexchange.com/questions/651155/how-to-make-bash-zsh-prompt-show-only-the-current-directory-and-its-parent How to make Bash/Zsh prompt show only the current directory and its parent? How can I create a bash and a zsh prompt that shows only the current directory and its parent directory? For example, if I'm at the dir ~/pictures/photos/2021, it should show: [photos/2021]$ echo hi ..