From bfafc732c82dcff685b92e5dc113dd65a6e935da Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 20 Nov 2019 16:24:44 -0500 Subject: Remove color from 1sh prompts The weird PSlit behaviour just causes more weirdness than it's worth. The color I was using was barely different anyway. --- home/.config/1sh/env.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/home/.config/1sh/env.sh b/home/.config/1sh/env.sh index 105d80ed..362631e2 100644 --- a/home/.config/1sh/env.sh +++ b/home/.config/1sh/env.sh @@ -43,14 +43,6 @@ PS0=$'\n' PS1='\$ ' RPS1="${SSH_CLIENT:+\h:}\w" -af0=$(tput setaf 0 || tput AF 0) -af7=$(tput setaf 7 || tput AF 7) -sgr0=$(tput sgr0 || tput me) tsl=$'\e]0;' -fsl=$'\a' - -# FIXME: Trailing PSlit sequence gets dropped. -PSlit=$'\1' -PS1="${PSlit}${af7}${PSlit}${PS1% }${PSlit}${sgr0}${PSlit} " -RPS1="${PSlit}${af0}${PSlit}# ${PSlit}${af7}${PSlit}${RPS1}${PSlit}${sgr0}${PSlit}" +fsl=$'\e\\' [ "${TERM%-*}" = 'xterm' ] && PS0="${tsl}${SSH_CLIENT:+\h:}\W${fsl}${PS0}" -- cgit 1.4.1