Adds untracked files to git prompt

master
Jonathan Hodgson 4 years ago
parent 217cfcd0f2
commit eeeffe983b
  1. 4
      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"

Loading…
Cancel
Save