add git status
This commit is contained in:
parent
1998fd8374
commit
bfb00c443f
2
.bashrc
2
.bashrc
@ -46,7 +46,7 @@ parse_git_branch() {
|
|||||||
# C = copied
|
# C = copied
|
||||||
# U = updated but unmerged
|
# U = updated but unmerged
|
||||||
|
|
||||||
status="$(git status -s 2>/dev/null | cut -c 1,2,3 | sort -u | tr -d " \n")"
|
status="$(git status -s 2>/dev/null | cut -c 1 | sort -u | tr -d " \n?")"
|
||||||
|
|
||||||
if [ -n "$status" ]; then
|
if [ -n "$status" ]; then
|
||||||
status="-[$status]"
|
status="-[$status]"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user