export PS1="%{%F{green}%}%M$ %{%F{red}%}%"
参考how-can-i-change-the-color-of-my-prompt-in-zsh-different-from-normal-text
export PS1="%{%F{green}%}%M$ %{%F{red}%}%"
参考how-can-i-change-the-color-of-my-prompt-in-zsh-different-from-normal-text
转载于:https://my.oschina.net/u/191928/blog/738180