Iterm2:隐藏主机名和 git 分支

Iterm2: hide hostname and git branch

我使用 iterm2oh-my-zsh.

How can i hide hostname and git branch name?

  1. 打开 ~/.zshrc,搜索关键字 ZSH_THEME= 并找到您正在使用的主题。
  2. 打开~/.oh-my-zsh/themes/的主题文件,把Git和Hostname变量改成你想要的,你也可以修改颜色让git不显示这个闪亮。
  3. 保存修改并执行source ~/.zshrc让修改生效