From 75792da4af7b04421cc6ec8310e17322b282a5e0 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 13 Jan 2019 18:58:08 -0500 Subject: Set PS0 in cash --- home/.config/cash/env.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'home/.config/cash') diff --git a/home/.config/cash/env.sh b/home/.config/cash/env.sh index 32733a8a..450bb4b8 100644 --- a/home/.config/cash/env.sh +++ b/home/.config/cash/env.sh @@ -38,5 +38,6 @@ af7=$(tput setaf 7 || tput AF 7) sgr0=$(tput sgr0 || tput me) PSlit=$'\1' +[ "${TERM%-*}" = 'xterm' ] && PS0=$'\e]0;\\W\a\n' || PS0=$'\n' PS1="${PSlit}${af7}${PSlit}\$${PSlit}${sgr0}${PSlit} " RPS1="${PSlit}${af7}${PSlit}\\W${PSlit}${sgr0}${PSlit}" -- cgit 1.4.1