Use ASCII only for error prompt in TTY

This commit is contained in:
ItsDrike 2021-05-06 17:20:31 +02:00
parent 15bce217da
commit b906b71912
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD

View file

@ -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