I use iterm2 and oh-my-zsh.
How can i hide hostname and git branch name?
ZSH_THEME=
and find the theme that you are using.~/.oh-my-zsh/themes/
and override the Git and Hostname variables to what you want, you can also modify the color to make the git not showing this shining. source ~/.zshrc
to let the modification take into effect.