aboutsummaryrefslogtreecommitdiff
path: root/etc/shrc
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-07 19:57:31 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-07 19:57:31 +0200
commitdde1a234a6a2cd58b0173b1ed0ed1b199e74a63b (patch)
tree139ba432c9a1d8e0a4bdfa54b977657077d60c10 /etc/shrc
parent995b49b4dbc8a0cb03ae0ceb1f0a6cddf2a65404 (diff)
downloadlbsd-dde1a234a6a2cd58b0173b1ed0ed1b199e74a63b.tar.gz
/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/
Diffstat (limited to 'etc/shrc')
-rw-r--r--etc/shrc14
1 files changed, 0 insertions, 14 deletions
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