|
|
@ -157,26 +157,30 @@ fi |
|
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------ FORMATTING ------------------------------------------ # |
|
|
|
# ------------------------------------------ FORMATTING ------------------------------------------ # |
|
|
|
|
|
|
|
|
|
|
|
# Better color handling so scrolling doesn't get broken. |
|
|
|
if [[ $- == *i* ]] |
|
|
|
# Note for Cygwin you need ncurses for this to work. |
|
|
|
then |
|
|
|
reset=$(tput sgr0) |
|
|
|
# Better color handling so scrolling doesn't get broken. |
|
|
|
green=$(tput setaf 2) |
|
|
|
# Note for Cygwin you need ncurses for this to work. |
|
|
|
blue=$(tput setaf 4) |
|
|
|
reset=$(tput sgr0) |
|
|
|
white=$(tput setaf 7) |
|
|
|
green=$(tput setaf 2) |
|
|
|
|
|
|
|
blue=$(tput setaf 4) |
|
|
|
bold=$(tput bold || tput md) |
|
|
|
white=$(tput setaf 7) |
|
|
|
|
|
|
|
|
|
|
|
export PROMPT_DIRTRIM=2 |
|
|
|
bold=$(tput bold || tput md) |
|
|
|
|
|
|
|
|
|
|
|
# Important note for PS1 modification - everything non-printable must be escaped with `\[` and `\]`. Otherwise readline |
|
|
|
export PROMPT_DIRTRIM=2 |
|
|
|
# fails to track the prompt right and things get messed up when you input long strings. |
|
|
|
|
|
|
|
|
|
|
|
# Important note for PS1 modification - everything non-printable must be escaped with `\[` and `\]`. Otherwise readline |
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|
|
|
# fails to track the prompt right and things get messed up when you input long strings. |
|
|
|
# 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\]$(parse_git_branch)\[$reset\]\[$bold\]\[$white\]⇨\[$reset\] ' |
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then |
|
|
|
else |
|
|
|
# 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\]$(parse_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 |
|
|
|
|
|
|
|
export PS1='\[$bold\]\[$white\]\u@\h\[$reset\]: \[$bold\]\[$blue\]\w\[$reset\] \[$green\]$(parse_git_branch)\[$reset\]\[$bold\]\[$white\]⇨\[$reset\] ' |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. |
|
|
|
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. |
|
|
|
export PATH="$PATH:$HOME/.rvm/bin" |
|
|
|
export PATH="$PATH:$HOME/.rvm/bin" |
|
|
|