Go back to a sensible PROMPT_COMMAND
This commit is contained in:
parent
df27a9abf8
commit
545e6049cc
3
.bashrc
3
.bashrc
|
@ -73,8 +73,7 @@ function __PROMPT_COMMAND() {
|
|||
}
|
||||
|
||||
export PS1="[\u@\h \W \[\033[32m\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ <\1>/')\[\033[00m\]]\\$ "
|
||||
export PROMPT_COMMAND="${PROMPT_COMMAND:+"${PROMPT_COMMAND%%';__PROMPT_COMMAND'};"}__PROMPT_COMMAND"
|
||||
export PROMPT_COMMAND="${PROMPT_COMMAND//;;/;}"
|
||||
export PROMPT_COMMAND=__PROMPT_COMMAND
|
||||
#--------------------------------------------------------------------------------
|
||||
|
||||
#--------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue