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:
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!