From: Matthijs Kooijman Date: Wed, 29 Feb 2012 13:23:47 +0000 (+0100) Subject: bash: Change the terminal title when TERM=screen X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=07d0f763fa8cafe1b7293ce1544f9af05fd35c0e;p=matthijs%2Fservers%2Ftika.git bash: Change the terminal title when TERM=screen --- 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