From a99bf11314abe62594ced3b2f98029cca5d7356a Mon Sep 17 00:00:00 2001 From: buffet Date: Wed, 27 Sep 2023 14:48:15 +0200 Subject: [PATCH] bash: better prompt --- dots/.bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dots/.bashrc b/dots/.bashrc index 3bb32b6..de44520 100644 --- a/dots/.bashrc +++ b/dots/.bashrc @@ -15,13 +15,13 @@ __prompt() { IFS=';' read -rs -dR -p $'\e[6n' row col >/dev/tty if [[ $col != 1 ]]; then - printf '%s' $'\e[7m%\n\e[0m' + printf '%s' $'\e[0;7m%\n\e[0m' fi PS1='\[\e[0;1m\][' case $status in - 0) PS1+='\[\e[36m\]' ;; + 0) PS1+='\[\e[32m\]' ;; *) PS1+='\[\e[31m\]' ;; esac