after installing oh-my-zsh on mac git branch don't show, but after .oh-my-zsh it works

Viewed 1804

macos BigSur installed oh-my-zsh by sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

when I start terminal git branch don't show but after run .oh-my-zsh in shows.

How to do this automatically as earlier?

I uninstalled it, reinstalled it - nothing, the same problem

.zshrc:

export ZSH="/Users/*****/.oh-my-zsh"

ZSH_THEME="robbyrussell"

plugins=(git)

source $ZSH/oh-my-zsh.sh

1 Answers

You do not have the git-promot plugin loaded.

You only have the git plugin loaded. Which provides nice shortcuts but no prompt info. You need to edit the plugins values array to include it.

Find plugins=(git) in your above .zshrc file and replace it with.

plugins=(
  git
  git-prompt
)
Related