From 83f70a2079e2a84fc703373f36735b73c14f11e0 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 20 Oct 2017 10:05:08 +0700 Subject: [PATCH] make git config oh-my-zsh.hide-status work with the agnoster theme --- themes/agnoster.zsh-theme | 3 +++ 1 file changed, 3 insertions(+) diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 07546fd34..d23e23af9 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -87,6 +87,9 @@ prompt_context() { # Git: branch/detached head, dirty status prompt_git() { (( $+commands[git] )) || return + if [[ "$(git config --get oh-my-zsh.hide-status)" == "1" ]]; then + return + fi local PL_BRANCH_CHAR () { local LC_ALL="" LC_CTYPE="en_US.UTF-8"