hostStyle="\[$yellow\]"
fi
- if [ -n "${BASH_VERSION}" ]; then
-
- # Set the terminal title to the current working directory.
- PS1="\[\033]0;\w\007\]"
+ # Set the terminal title to the current working directory.
+ PS1="\[\033]0;\w\007\]"
- PS1+=$'\n' # newline
+ if [ -n "${BASH_VERSION}" ]; then
+ PS1+=$'\r' # carriage return
PS1+="\[$userStyle\]\u" # username
PS1+="\[$reset$white\] at "
PS1+="\[$hostStyle\]\h" # host
PS2="\[${yellow}\]→ " # `→`
PS2+="\[${reset}\]" # reset color
else
- PS1="\u at \h in \w on \$(__git_ps1 %s])"
+ PS1+=$'\r' # carriage return
+ PS1+="\u at \h in \w on \$(__git_ps1 %s])"
PS1+=$'\n''\$ '
+
PS2="→ "
fi