Add repository root to gitprompt
This commit is contained in:
parent
f4eb1ea703
commit
fccf3622e5
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ git__prompt () {
|
||||||
f=3
|
f=3
|
||||||
fi
|
fi
|
||||||
/bin/echo -ne "\033[00;3${f}mδ\033[00;33m"
|
/bin/echo -ne "\033[00;3${f}mδ\033[00;33m"
|
||||||
|
/bin/echo -ne " \033[00;36m$(basename $top)"
|
||||||
status=$(git status --short 2>/dev/null)
|
status=$(git status --short 2>/dev/null)
|
||||||
branch=$(git branch | grep -Po '(?<=\* )[[:alnum:]_.-]*')
|
branch=$(git branch | grep -Po '(?<=\* )[[:alnum:]_.-]*')
|
||||||
modif=$(echo "$status" | grep -Po '^\s*M' | wc -l)
|
modif=$(echo "$status" | grep -Po '^\s*M' | wc -l)
|
||||||
|
|
Loading…
Reference in a new issue