From 3a9733942d0c9df433c28571b4401788230579ec Mon Sep 17 00:00:00 2001 From: Marc Date: Tue, 28 Apr 2020 10:28:58 +0200 Subject: [PATCH] modified theme to use dot instead of git if in dotfiles --- .config/zsh/themes/agnoster.zsh-theme | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/zsh/themes/agnoster.zsh-theme b/.config/zsh/themes/agnoster.zsh-theme index 7df5a23..39eb450 100644 --- a/.config/zsh/themes/agnoster.zsh-theme +++ b/.config/zsh/themes/agnoster.zsh-theme @@ -93,7 +93,12 @@ prompt_context() { prompt_git() { local color ref is_dirty() { - test -n "$(git status --porcelain --ignore-submodules)" + if [[ "${PWD}" == "${HOME}/dotfiles" ]] + then + test -n "$(dot status --porcelain --ignore-submodules)" + else + test -n "$(git status --porcelain --ignore-submodules)" + fi } ref="$vcs_info_msg_0_" if [[ -n "$ref" ]]; then