From 50658ec718e0725c7908662a868cc6d4e2f11a4e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Ouellet Date: Tue, 21 Nov 2017 05:11:48 -0500 Subject: [PATCH] Call update_current_git_vars once on startup so the prompt is correct even if the shell is started inside a git dir, rather than only being correct upon first cd. --- zshrc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zshrc.sh b/zshrc.sh index d4010c1e..9087940c 100644 --- a/zshrc.sh +++ b/zshrc.sh @@ -105,4 +105,7 @@ ZSH_THEME_GIT_PROMPT_AHEAD="%{↑%G%}" ZSH_THEME_GIT_PROMPT_UNTRACKED="%{…%G%}" ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}%{✔%G%}" - +# Call update_current_git_vars once on startup so the prompt is correct +# even if the shell is started inside a git dir, rather than only being +# correct upon first cd. +update_current_git_vars