zsh 修改PS1

${ret_status} %{$fg[cyan]%}%~%{$reset_color%} $(git_prompt_info)

cd ~/.oh-my-zsh/themes
echo $ZSH_THEME
vim robbyrussell.zsh-theme


PROMPT='%{$fg_bold[red]%}-> %{$fg_bold[green]%}%p%{$fg[cyan]%}[%n@%M] [%~]%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}
'
image.png

你可能感兴趣的:(zsh 修改PS1)