aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-08 18:19:32 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-08 18:19:32 +0200
commitcc977dbf6c89c095ca8991a95abba132412fa662 (patch)
treeb9a534d424613e79f2260eb491c303537c5c4b96
parent5e34abc770fe894b8ac5b010101d85ea58a0e24f (diff)
downloadlbsd-cc977dbf6c89c095ca8991a95abba132412fa662.tar.gz
/etc/shrc: Use safetitle in screen sessions
-rw-r--r--etc/shrc4
1 files changed, 4 insertions, 0 deletions
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