From 64e05d6ce0b1382df8e637bc6917bbaaa21d6811 Mon Sep 17 00:00:00 2001 From: ArcheyDevil Date: Fri, 13 Apr 2012 00:03:01 +1000 Subject: [PATCH] While working on a new theme for git, I discovered that there was a missing flag for the git status, wouldn't ever tell us if there was any untracked files. -u simply added. Alt theme will come soon. --- lib/git.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git.zsh b/lib/git.zsh index f04343650..74da922dd 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -32,7 +32,7 @@ function git_prompt_long_sha() { # Get the status of the working tree git_prompt_status() { - INDEX=$(git status --porcelain 2> /dev/null) + INDEX=$(git status -u --porcelain 2> /dev/null) STATUS="" if $(echo "$INDEX" | grep '^?? ' &> /dev/null); then STATUS="$ZSH_THEME_GIT_PROMPT_UNTRACKED$STATUS"