Skip to content

Instantly share code, notes, and snippets.

@codebytere
Created June 11, 2019 17:44
Show Gist options
  • Save codebytere/76b67e0c08a10baa4864e170b0c62f9c to your computer and use it in GitHub Desktop.
Save codebytere/76b67e0c08a10baa4864e170b0c62f9c to your computer and use it in GitHub Desktop.
diff --git a/lib/git.zsh b/lib/git.zsh
index 640561e..d7fafa1 100644
--- a/lib/git.zsh
+++ b/lib/git.zsh
@@ -17,7 +17,10 @@ function parse_git_dirty() {
if [[ "$DISABLE_UNTRACKED_FILES_DIRTY" == "true" ]]; then
FLAGS+='--untracked-files=no'
fi
- STATUS=$(command git status ${FLAGS} 2> /dev/null | tail -n1)
+ if [[ "$(pwd)" != *"/Users/codebytere/Developer/electron-gn/src"* &&
+ "$(pwd)" != *"/Users/codebytere/Developer/chromium/src"* ]]; then
+ STATUS=$(command git status ${FLAGS} 2> /dev/null | tail -n1)
+ fi
fi
if [[ -n $STATUS ]]; then
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment