Don't clobber any existing PROMPT_COMMAND variable
This commit is contained in:
parent
61a31a0834
commit
ce181b636f
2
.bashrc
2
.bashrc
|
@ -94,7 +94,7 @@ function _deferred {
|
|||
# A useful prompt
|
||||
#--------------------------------------------------------------------------------
|
||||
export PS1="[\u@\h \W \[\033[32m\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ <\1>/')\[\033[00m\]]\\$ "
|
||||
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
|
||||
export PROMPT_COMMAND+='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
|
||||
#--------------------------------------------------------------------------------
|
||||
|
||||
#--------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue