Fixed spacing issue in PS1.
This commit is contained in:
parent
09aeb9f1ca
commit
9951f98ec0
4
.bashrc
4
.bashrc
@ -93,12 +93,12 @@ prompt_command() {
|
||||
fi
|
||||
|
||||
if git branch &>/dev/null; then
|
||||
branch=" $green$(git branch 2>/dev/null | grep \* | cut -d ' ' -f 2-)"
|
||||
branch="$green$(git branch 2>/dev/null | grep \* | cut -d ' ' -f 2-)"
|
||||
clean=$(git status | grep clean)
|
||||
if [ -z "$clean" ]; then clean="${red}✗"; else clean=""; fi
|
||||
fi
|
||||
|
||||
PS1="${debian_chroot:+($debian_chroot)}$numcolor\!$red \u$sepcolor@${brightBlue}\h${default}: ${branch}${clean} $default\w$green\$${default} "
|
||||
PS1="${debian_chroot:+($debian_chroot)}$numcolor\!$red \u$sepcolor@${brightblue}\h${default}:${branch}${clean} $default\w$green\$${default} "
|
||||
|
||||
unset clean numcolor branch retval
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user