Fix the multiple adds of PROMPT_COMMAND upon sourcing again.
author |
Steve Losh <steve@stevelosh.com> |
date |
Fri, 21 Aug 2009 17:41:15 -0400 |
parents |
9863608aab54
|
children |
fc3f7d01ec3f
|
branches/tags |
(none) |
files |
.bashrc |
Changes
--- a/.bashrc Fri Aug 21 17:40:48 2009 -0400
+++ b/.bashrc Fri Aug 21 17:41:15 2009 -0400
@@ -64,4 +64,5 @@
echo "\n${PINK}\u ${D}at ${ORANGE}\h ${D}in ${GREEN}\w$(hg_ps1)${D}\n$ "
}
-PROMPT_COMMAND='PS1="`render_ps1`"'"; $PROMPT_COMMAND"
\ No newline at end of file
+PROMPT_COMMAND="$(echo "$PROMPT_COMMAND"|sed -e's/PS1="`render_ps1`";//g')"
+PROMPT_COMMAND='PS1="`render_ps1`";'"$PROMPT_COMMAND"
\ No newline at end of file