Make username@machine bold in Terminal's ZSH shell but not the command's output How can I make Terminal, using ZSH shell, display username@machine current_folder % in bold? I know it has to do with editing PS1 variable in zshrc file located in /etc folder. I have tried that, I added %B, like this PS1=&quot;%n@%m %1~ %# &quot; =&gt; PS1=&quot;%B%n@%m %1~ %# &quot; but that sometimes makes also output of some commands bold.
Just terminate the bold text after the current working directory with %b
PS1=&quot;%B%n@%m %1~%b %# &quot;