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