From dde1a234a6a2cd58b0173b1ed0ed1b199e74a63b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 7 Jun 2021 19:57:31 +0200 Subject: /etc/shrc: Remove dynamic title mechanism It has been replaced by a more stable solution. See http://git.ankarstrom.se/ksh/commit/?id=79dc7cad and http://git.ankarstrom.se/x11/tterm/ --- etc/shrc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'etc/shrc') diff --git a/etc/shrc b/etc/shrc index a8e675f..6dc13f3 100644 --- a/etc/shrc +++ b/etc/shrc @@ -16,20 +16,6 @@ case "$-" in *i*) esac /bin/test "$(whoami)" = root && PS1=$PS1'# ' || PS1=$PS1'$ ' - # dynamically change terminal title - case "$0,$TERM,$XTERM_SHELL" in - *ksh,screen,*) - PS1=$PS1'$(safetitle "$PWD")' ;; - *ksh,*,/*) - PS1=$PS1']0;$PWD' ;; - *bash,screen,/*) - PROMPT_COMMAND='safetitle "${PWD/#\/home\/john/\~}"' ;; - *bash,*,/*) - PS1='\[\033]0;\w\007\]'$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