I am using zsh and Oh-My-Zsh on Ubuntu 14.04.
For some reason all directories are indicated to be git repos. This is true for all oh-my-zsh themes, which leads me to believe that this is a zsh issue perhaps related to vcs_info
.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityAny sub directory to a directory containing a git repo will be identified as a git repo. I had accidentally created a git repo in / which resulted in all directories being identified as git repos.
vcs_info
usesgit rev-parse --is-inside-work-tree
to determine if you are currently in a git repository. You can usegit rev-parse --git-dir
to find out where the.git
directory for this repository is.