From b906b71912336f6961613c6d29f2c3b17778fcc6 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 6 May 2021 17:20:31 +0200 Subject: [PATCH] Use ASCII only for error prompt in TTY --- home/.config/sh/theme | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/.config/sh/theme b/home/.config/sh/theme index 20f6836..0e7b04c 100755 --- a/home/.config/sh/theme +++ b/home/.config/sh/theme @@ -77,6 +77,10 @@ PS1+=" $PURPLE%(!.#.»)$RESET " # Final symbol (# or ») PS2="$RED\ $RESET" # Right side prompt (on error) -RPS1="%(?..$RED%? ↵$RESET)" +if [ $TERM = "linux" ]; then + RPS1="%(?..$RED%? X$RESET)" +else + RPS1="%(?..$RED%? ↵$RESET)" +fi