From 3e282953cd8328bbc560379f8a50e4fb4a88c58a Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Sat, 15 Jan 2022 21:57:15 +0300 Subject: [PATCH] prompt: white on white fxd --- const.sh | 3 ++- prompt.sh | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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 \ "