From aa1be716a066f003832efb36748d71c2e073418d Mon Sep 17 00:00:00 2001 From: "John Ankarstr\\xf6m" Date: Sun, 30 May 2021 17:22:07 +0200 Subject: shrc: Fix prompt on wscons --- etc/shrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/shrc b/etc/shrc index 92dd870..76f9b4c 100644 --- a/etc/shrc +++ b/etc/shrc @@ -8,7 +8,10 @@ case "$-" in *i*) if /bin/test -z "${HOST}"; then HOST="$(hostname)" fi - PS1=' ]2;$PWD'${HOST%%.*}$PS1 + case "$TERM" in + x*) PS1=' ]2;$PWD'${HOST%%.*}$PS1 ;; + *) PS1=${HOST%%.*}$PS1 ;; + esac set -o emacs # This file is used by shells that might not support # set -o tabcomplete, so check before trying to use it. -- cgit v1.2.3