From eeeffe983b5abe32947bae7b6cc8277fa58b9c7e Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sun, 29 Mar 2020 19:21:32 +0100 Subject: [PATCH] Adds untracked files to git prompt --- shells/zsh/includes/promptconfig.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shells/zsh/includes/promptconfig.zsh b/shells/zsh/includes/promptconfig.zsh index 01fd6117..c4b3bfd4 100644 --- a/shells/zsh/includes/promptconfig.zsh +++ b/shells/zsh/includes/promptconfig.zsh @@ -131,6 +131,10 @@ prompt_git(){ local modified=$(command git diff --name-only 2> /dev/null) local staged=$(command git diff --staged --name-only 2> /dev/null) + if [ -n "$untrackedFiles" ]; then + ret+=" " + color="orange1" + fi if [ -n "$modified" ]; then ret+=" " color="orange1"