yellow="\e[1;33m"
fi
- fg="$white"
-
# build the prompt
+ fg="$white"
# logged in as root
if [[ "$USER" == "root" ]]; then
# Set the terminal title to the current working directory.
PS1="\[\033]0;\w\007\]"
- if [ -n "${BASH_VERSION}" ]; then
+ if [[ "$TERM" == *color ]]; then
PS1+=$'\r' # carriage return
PS1+="\[$userStyle\]\u" # username
PS1+="\[$reset$fg\] at "
PS1+=$'\n' # newline
PS1+="\[$reset$fg\]\$ \[$reset\]" # $ (and reset color)
- PS2="\[${yellow}\]â\86\92 " # `â\86\92`
+ PS2="\[${yellow}\]Ã\83¢Ã\82Â\86Ã\82Â\92 " # `Ã\83¢Ã\82Â\86Ã\82Â\92`
PS2+="\[${reset}\]" # reset color
- else
+ else # no colors
PS1+=$'\r' # carriage return
PS1+="\u at \h in \w on \$(__git_ps1 %s)"
PS1+=$'\n''\$ ' # newline and $
- PS2="â\86\92 "
+ PS2="Ã\83¢Ã\82Â\86Ã\82Â\92 "
fi
export PS1 PS2