From 239300e85715680340f0e48581149153c24854bb Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 14 Jul 2021 15:01:17 +0200 Subject: [PATCH] Wrap variables in RPS in {} --- home/.config/sh/prompt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/home/.config/sh/prompt b/home/.config/sh/prompt index a67cdf5..aa81208 100755 --- a/home/.config/sh/prompt +++ b/home/.config/sh/prompt @@ -78,9 +78,8 @@ PS2="$RED\ $RESET" # Right side prompt (on error) if [ $TERM = "linux" ]; then - RPS1="%(?..$RED%? X$RESET)" + RPS1="%(?..${RED}%? X$RESET)" else - RPS1="%(?..$RED%? ↵$RESET)" + RPS1="%(?..${RED}%? ↵$RESET)" fi -