From 07d0f763fa8cafe1b7293ce1544f9af05fd35c0e Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 29 Feb 2012 14:23:47 +0100 Subject: [PATCH] bash: Change the terminal title when TERM=screen --- etc/skel/.bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/skel/.bashrc b/etc/skel/.bashrc index 17c7b51..ab43aef 100644 --- a/etc/skel/.bashrc +++ b/etc/skel/.bashrc @@ -55,11 +55,15 @@ else fi unset color_prompt force_color_prompt -# If this is an xterm set the title to user@host:dir +# If this is an xterm or screen set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ;; +screen) + # Only show the hostname in screen, since there is less space + PS1="\[\ek${debian_chroot:+($debian_chroot)}\u@\h:\e\134\]$PS1" + ;; *) ;; esac -- 2.30.2