From 1a943907db6d2e46aeaaf53d29b636801639fd5b Mon Sep 17 00:00:00 2001 From: madumlao Date: Tue, 29 Apr 2025 15:56:50 +0800 Subject: [PATCH] Fix spacing when error is shown --- skel/.bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skel/.bashrc b/skel/.bashrc index e39bee1..cc24233 100644 --- a/skel/.bashrc +++ b/skel/.bashrc @@ -75,10 +75,10 @@ esac # Add goodies to PS1 export BASE_PS1="$PS1" export BASE_PS1="$(echo "$BASE_PS1" | sed 's!\\\$ $!!g')" -export BASE_PS1_END='\$ ' +export BASE_PS1_END=' \$ ' # show return value if prompt is nonzero -export BASH_GOODIES_RETURNVAL='$([ "$?" = 0 ] && echo "" || echo " \e[31m\][$?]\[\e[0m\] ")' +export BASH_GOODIES_RETURNVAL='$([ "$?" = 0 ] && echo "" || echo " \e[31m\][$?]\[\e[0m\]")' PS1="${BASE_PS1}${BASH_GOODIES_RETURNVAL}${BASE_PS1_END}" # enable color support of ls and also add handy aliases