zsh hangs/freezes when enter directories with git repositories

Photo by Jake Walker

There is no doubt oh-my-zsh project is awesome. It can drastically improve your software development workflow. It even informs you, when new version was released.

After some time of using it I've met a problem. When entering directory with .git repository it freezes and allowed for Ctrl+C only - and displaying "raw" part of the prompt.

While debugging I've found the issue was not exactly in the .oh-my-zsh itself but in the spaceship theme I've used - spaceship. My bad :). The solution was pretty simple. Go to the individual theme directory and pull the latest changes or reinstall it.

Photo by Jake Walker on Unsplash