我的oh My Zsh主题
Table of Contents
最近想改下iTerm的oh-my-zsh主题,看知乎讨论,有一款简洁的主题映入眼帘。
##
主题名称
half-life
##
修改PROMPT
然后去oh-my-zsh.sh修改PROMPT
vim ~/.oh-my-zsh/oh-my-zsh.sh
在文件末尾添加一行:
PROMPT=$'%{$purple%}%n%{$reset_color%} in %{$limegreen%}%~%{$reset_color%}$(ruby_prompt_info " with%{$fg[red]%} " v g "%{$reset_color%}")$vcs_info_msg_0_%{$orange%}%{$reset_color%} at %{$hotpink%}%* %{$orange%}λ%{$reset_color%} '
效果如下