Skip to content

Instantly share code, notes, and snippets.

@froemken
Created April 9, 2021 08:12
Show Gist options
  • Save froemken/e1effa1a444a5292fa61219bf2e5a2cc to your computer and use it in GitHub Desktop.
Save froemken/e1effa1a444a5292fa61219bf2e5a2cc to your computer and use it in GitHub Desktop.
Deactivate git dirty check on ZSH because of performance reasons
# Switching directories can be very slow in ZSH with activated git dirty check.
# Some themes create their own git queries and sometimes ignore these flags.
# @link: https://stackoverflow.com/questions/12765344/oh-my-zsh-slow-but-only-for-certain-git-repo
# It does not work with spaceship theme.
git config --global --add oh-my-zsh.hide-status 1
git config --global --add oh-my-zsh.hide-dirty 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment