Created
June 11, 2019 17:44
-
-
Save codebytere/76b67e0c08a10baa4864e170b0c62f9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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