Commit 9ef7e8a1 authored by Robby Russell's avatar Robby Russell
Browse files

Merge pull request #1077 from Mezzle/add-option-to-show-git-status

Add option to disable status notification
parents a634d506 8ce35df2
...@@ -9,6 +9,7 @@ function git_prompt_info() { ...@@ -9,6 +9,7 @@ function git_prompt_info() {
# Checks if working tree is dirty # Checks if working tree is dirty
parse_git_dirty() { parse_git_dirty() {
local SUBMODULE_SYNTAX='' local SUBMODULE_SYNTAX=''
if [[ "$(git config --get oh-my-zsh.hide-status)" != "1" ]]; then
if [[ $POST_1_7_2_GIT -gt 0 ]]; then if [[ $POST_1_7_2_GIT -gt 0 ]]; then
SUBMODULE_SYNTAX="--ignore-submodules=dirty" SUBMODULE_SYNTAX="--ignore-submodules=dirty"
fi fi
...@@ -17,6 +18,7 @@ parse_git_dirty() { ...@@ -17,6 +18,7 @@ parse_git_dirty() {
else else
echo "$ZSH_THEME_GIT_PROMPT_CLEAN" echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
fi fi
fi
} }
# get the difference between the local and remote branches # get the difference between the local and remote branches
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment