From 759e7f7eea73edc263b94522e22748a205d636f6 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Fri, 9 Nov 2012 18:07:58 +0100 Subject: [PATCH] Preserve the tab titles in Terminal.app --- .bashrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.bashrc b/.bashrc index f0b2d95..43fd284 100644 --- a/.bashrc +++ b/.bashrc @@ -195,11 +195,11 @@ export PS1="$PS1$ps1_pwd$ps1_vcs$ps1_ruby \$ " # Make less more friendly for non-text input files, see lesspipe(1) [[ -x /usr/bin/lesspipe ]] && eval "$(lesspipe)" -# If this is an xterm set the title to user@host:dir. -#case "$TERM" in -# xterm*|rxvt*) export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"' ;; -# *) ;; -#esac +# If this is an xterm set the title to something empty to preserve Terminal.app titles. +case "$TERM" in + xterm*|rxvt*) export PROMPT_COMMAND='echo -ne "\033]0;\007"' ;; + *) ;; +esac # Enable color support. Don't add ls here, it behaves different on Darwin/BSD. if [[ -x /usr/bin/dircolors ]]; then eval "$(dircolors -b)"; fi