From cc977dbf6c89c095ca8991a95abba132412fa662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 8 Jun 2021 18:19:32 +0200 Subject: /etc/shrc: Use safetitle in screen sessions --- etc/shrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/shrc b/etc/shrc index 6dc13f3..4db8360 100644 --- a/etc/shrc +++ b/etc/shrc @@ -16,6 +16,10 @@ case "$-" in *i*) esac /bin/test "$(whoami)" = root && PS1=$PS1'# ' || PS1=$PS1'$ ' + case "$TERM" in + screen*) PS1='$(safetitle "$PWD")'$PS1 ;; + esac + # This file is used by shells that might not support # set -o tabcomplete, so check before trying to use it. ( set -o tabcomplete 2>/dev/null ) && set -o tabcomplete -- cgit v1.2.3