How does iTerm2 hide git branches?

is the git branch shown later. How to make it not displayed? this function is not needed very much.

May.29,2021

  1. Open the file ~ / .zshrc , and then search for the ZSH_THEME= keyword to find the theme you are using.
  2. find the file named by the theme in the ~ / .oh-my-zsh/themes/ folder, then back it up, modify it, or copy it to a new theme, then modify it, and change the theme in step 1.
  3. Save the changes, and then execute source ~ / .zshrc .

ide-hostname-and-git-branch" rel=" nofollow noreferrer "> reference link

Menu