3 ms·
I really like right prompt. My config is: PS1="%# " RPS1="%40<...<%~" This way I have current directory information without eating precious space. Ot
by vbezhenar 4y ago
I really like right prompt. My config is:
PS1="%# "
RPS1="%40<...<%~"
This way I have current directory information without eating precious space.
Other than that, I don't really use much zsh-specific functionality.
- codewiz 4y agoIf you use the right prompt, make it automatically disappear so it doesn't get copied along when you select text in the terminal: setopt transient_rprompt
- I_complete_me 4y agoI use a 2 line prompt which obviates the need for that but nice tip all the same.
- vbezhenar 4y agoThanks, that's very useful!
- bombcar 4y agoWhat does right prompt do, and what happens if the text you're typing runs into it?
- vbezhenar 4y ago> What does right prompt do It displays configured text at right side of your terminal. My example displays current directory truncated to 40 characters. > and what happens if the text you're typing runs into it? It disappears.