|
|
|
@ -8,7 +8,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
parse_git_branch() { |
|
|
|
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' |
|
|
|
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# If you ever needed weather... |
|
|
|
@ -36,4 +36,4 @@ export PROMPT_DIRTRIM=2
|
|
|
|
|
# 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. |
|
|
|
|
export PS1=\ |
|
|
|
|
'\[$bold\]\[$white\]\u@\h\[$reset\]: \[$bold\]\[$blue\]\w\[$reset\] \[$green\]\[$(parse_git_branch)\]\[$reset\]\[$bold\]\[$white\]>\[$reset\] ' |
|
|
|
|
'\[$bold\]\[$white\]\u@\h\[$reset\]\[:\] \[$bold\]\[$blue\]\w\[$reset\] \[$green\]\[$(parse_git_branch)\]\[$reset\]\[$bold\]\[$white\]⇨\[$reset\] ' |
|
|
|
|