Remove `git:(master)` from oh my zsh terminal

Viewed 554

I get git:(master) on every directory in the terminal ( There is no .git directory ).

How to remove that and only show git info if there is a git repo. This is how it looks right now:

enter image description here

I am using oh my zsh with the default theme.

I have tried to reinstall iterm2 and oh my zsh but the same issue.

Here is my echo $PS1 result:

%(?:%{%}➜ :%{%}➜ ) %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)

Thanks!

0 Answers
Related