|
|
@ -129,11 +129,9 @@ export PROMPT_DIRTRIM=2 |
|
|
|
# Important note for PS1 modification - everything non-printable must be escaped with `\[` and `\]`. Otherwise readline |
|
|
|
# Important note for PS1 modification - everything non-printable must be escaped with `\[` and `\]`. Otherwise readline |
|
|
|
# fails to track the prompt right and things get messed up when you input long strings. |
|
|
|
# fails to track the prompt right and things get messed up when you input long strings. |
|
|
|
|
|
|
|
|
|
|
|
GIT_BRANCH=$(parse_git_branch) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|
|
|
# I had some rendering issues running in XFCE unless I added an extra space at the end. |
|
|
|
# I had some rendering issues running in XFCE unless I added an extra space at the end. |
|
|
|
export PS1='\[$bold\]\[$white\]\u@\h\[$reset\]: \[$bold\]\[$blue\]\w\[$reset\] \[$green\]$GIT_BRANCH\[$reset\]\[$bold\]\[$white\]⇨\[$reset\] ' |
|
|
|
export PS1='\[$bold\]\[$white\]\u@\h\[$reset\]: \[$bold\]\[$blue\]\w\[$reset\] \[$green\]$(parse_git_branch)\[$reset\]\[$bold\]\[$white\]⇨\[$reset\] ' |
|
|
|
else |
|
|
|
else |
|
|
|
export PS1='\[$bold\]\[$white\]\u@\h\[$reset\]: \[$bold\]\[$blue\]\w\[$reset\] \[$green\]$GIT_BRANCH\[$reset\]\[$bold\]\[$white\]⇨\[$reset\] ' |
|
|
|
export PS1='\[$bold\]\[$white\]\u@\h\[$reset\]: \[$bold\]\[$blue\]\w\[$reset\] \[$green\]$(parse_git_branch)\[$reset\]\[$bold\]\[$white\]⇨\[$reset\] ' |
|
|
|
fi |
|
|
|
fi |
|
|
|