diff options
author | Marten Seemann <martenseemann@gmail.com> | 2018-09-24 08:11:57 -0400 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-09-24 14:11:57 +0200 |
commit | 150a3c9c834d824bdea5c8755963790e3c8efded (patch) | |
tree | a658f36a8860cbd79fc6517d6f29b44ae2d7c798 /themes | |
parent | 096ef3e6a77e64f58578c2ecd5e831782944c473 (diff) | |
download | zsh-150a3c9c834d824bdea5c8755963790e3c8efded.tar.gz zsh-150a3c9c834d824bdea5c8755963790e3c8efded.tar.bz2 zsh-150a3c9c834d824bdea5c8755963790e3c8efded.zip |
agnoster: respect git config oh-my-zsh.hide-status (#6362)
Diffstat (limited to 'themes')
-rw-r--r-- | themes/agnoster.zsh-theme | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index d1a69c560..302de6e6f 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -96,6 +96,9 @@ prompt_context() { # Git: branch/detached head, dirty status prompt_git() { (( $+commands[git] )) || return + if [[ "$(git config --get oh-my-zsh.hide-status 2>/dev/null)" = 1 ]]; then + return + fi local PL_BRANCH_CHAR () { local LC_ALL="" LC_CTYPE="en_US.UTF-8" |