diff --git a/const.sh b/const.sh index 5333c3f..c8291b4 100755 --- a/const.sh +++ b/const.sh @@ -23,4 +23,5 @@ fi export COLORTERM=truecolor PROMPT_COLOR=36m PROMPT_END=$ -HOST_COLOR=31m +HOST_FG=31m +HOST_BG=49 diff --git a/prompt.sh b/prompt.sh index 0fe01e7..b35fa1f 100755 --- a/prompt.sh +++ b/prompt.sh @@ -1,4 +1,4 @@ -export PS1="\[\033[01;$PROMPT_COLOR\]\u@\[\033[01;$HOST_COLOR\]\h\[\033[01;34m\] \w\\ -\[\033[01;30m\]\$(__git_ps1)\$(__hg_ps1) \\ -\[\033[01;$PROMPT_COLOR\]\$PROMPT_END\[\033[00m\] \\ +export PS1="\e[01;$PROMPT_COLOR\u@\e[$HOST_BG;$HOST_FG\h\e[49;34m\] \w\ +\e[01;30m\$(__git_ps1)\$(__hg_ps1) \ +\e[01;$PROMPT_COLOR\$PROMPT_END\e[00m \ "