Why can't I get the cobalt2 zsh theme to work on my iTerm2?

纵然是瞬间 提交于 2019-12-06 20:44:25

The last line export PS1='%/ ~ ' of your .zshrc overwrites the prompt configured by cobalt2.zsh-theme, which sets $PROMPT (and the theme is sourced when you source $ZSH/oh-my-zsh.sh). As you can see, export PS1='%/ ~ ' comes after source $ZSH/oh-my-zsh.sh, so it overwrites the previous value. (Note that $PS1, $PROMPT and $prompt are synonyms to each other in Zsh.)

The solution is simple: delete the last line of your .zshrc and try again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!