diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-02-19 18:51:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-02-19 18:51:21 +0000 |
commit | 2a728c7c4c47709786df21c8063016e2e376c6e9 (patch) | |
tree | 00164c39449f4d27a26db97ccaae398eef68bf2e /app-shells/bash | |
parent | Mark ~ppc wrt #345435 (diff) | |
download | gentoo-2-2a728c7c4c47709786df21c8063016e2e376c6e9.tar.gz gentoo-2-2a728c7c4c47709786df21c8063016e2e376c6e9.tar.bz2 gentoo-2-2a728c7c4c47709786df21c8063016e2e376c6e9.zip |
Touch up by Evert for HOME replacement in PROMPT_PROMPT_COMMAND #354719.
(Portage version: 2.2.0_alpha23/cvs/Linux x86_64)
Diffstat (limited to 'app-shells/bash')
-rw-r--r-- | app-shells/bash/ChangeLog | 5 | ||||
-rw-r--r-- | app-shells/bash/files/bashrc | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/app-shells/bash/ChangeLog b/app-shells/bash/ChangeLog index f83ea9f18ee5..8447568f7049 100644 --- a/app-shells/bash/ChangeLog +++ b/app-shells/bash/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-shells/bash # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.277 2011/02/19 17:20:15 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.278 2011/02/19 18:51:21 vapier Exp $ + + 19 Feb 2011; Mike Frysinger <vapier@gentoo.org> files/bashrc: + Touch up by Evert for HOME replacement in PROMPT_PROMPT_COMMAND #354719. 19 Feb 2011; Mike Frysinger <vapier@gentoo.org> bash-4.2.ebuild, +files/bash-4.2-patmatch.patch, +files/bash-4.2-rhs-split.patch, diff --git a/app-shells/bash/files/bashrc b/app-shells/bash/files/bashrc index 1fa314930165..a3773d648ea6 100644 --- a/app-shells/bash/files/bashrc +++ b/app-shells/bash/files/bashrc @@ -26,10 +26,10 @@ shopt -s histappend # Change the window title of X terminals case ${TERM} in xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix) - PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' + PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"' ;; screen) - PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"' + PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\033\\"' ;; esac |