Adds untracked files to git prompt
This commit is contained in:
parent
217cfcd0f2
commit
eeeffe983b
1 changed files with 4 additions and 0 deletions
|
@ -131,6 +131,10 @@ prompt_git(){
|
||||||
local modified=$(command git diff --name-only 2> /dev/null)
|
local modified=$(command git diff --name-only 2> /dev/null)
|
||||||
local staged=$(command git diff --staged --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
|
if [ -n "$modified" ]; then
|
||||||
ret+=" "
|
ret+=" "
|
||||||
color="orange1"
|
color="orange1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue