How can I change the color of my prompt in zsh (different from normal text)?
Put this in ~/.zshrc: autoload -U colors && colors PS1=”%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% ” Supported Colors: red, blue, green, cyan, yellow, magenta, black, & white (from this answer) although different computers may have different valid options. Surround color codes (and any other non-printable chars) with %{….%}. This is for the text wrapping to work correctly. Additionally, … Read more