My current command prompt displays the entire path from my home directory to my cwd. For instance a possible command prompt would be ~/Desktop/images/japan λ. How do I make it such that it always shows only the most precise location in my cwd. For example the previous command prompt would instead be japan λ or ~/japan λ.
My current zshrc file which implements my command prompt contains:
PS1='%F{cyan}%~ %B%F{yellow}λ%f%b '
RPS1='%B%(?.%F{green}✓.%F{red}✗)%f%b'
PS2='%B%F{yellow}⤷%f%b '