diff options
author | June McEnroe <june@causal.agency> | 2019-01-13 18:58:08 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-01-13 18:58:08 -0500 |
commit | 5a8e9ac5ffbfbe9308086b2a23e5d651040c5374 (patch) | |
tree | 7cb2d898a3f25a4c1f7b4fef8ae260c1d5472469 /home | |
parent | Add PS0 (diff) | |
download | src-5a8e9ac5ffbfbe9308086b2a23e5d651040c5374.tar.gz src-5a8e9ac5ffbfbe9308086b2a23e5d651040c5374.zip |
Set PS0 in cash
Diffstat (limited to '')
-rw-r--r-- | home/.config/cash/env.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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}" |