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.

This commit is contained in:
ArcheyDevil 2012-04-13 00:03:01 +10:00
commit 64e05d6ce0

View file

@ -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"