I just switched from bash to zsh and now I am trying to find out, how to colorize the Username and Host to have different color shemes. With bash my colorsheme looked like that: (orange)user (blue)@ (red)hostname
I couldn't find any good guide or explanation on how to seperate this and when I look at my actual .zshrc
if [ "$color_prompt" = yes ]; then
PROMPT=$'%F{%(#.blue.green)}┌──${debian_chroot:+($debian_chroot)──}(%B%F{%(#.red.blue)}%n%(#..㉿)%m%b%F{%(#. blue.green)})-[%B%F{reset}%(6~.%-1~/…/%4~.%5~)%b%F{%(#.blue.green)}]\n└─%B%(#.%F{red}#.%F{blue}$)%b%F{reset} '
RPROMPT=$'%(?.. %? %F{red}%B⨯%b%F{reset})%(1j. %j %F{yellow}%B⚙%b%F{reset}.)'
I can't figure out, what could be the current user and host color.
info zsh 'prompt expansion'
. You may need to install azsh-doc
package or equivalent. – Stéphane Chazelas Aug 31 '20 at 07:06