From 5aaca781a287f747e93a77a42a4bc9bb5353ee8e Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 5 Aug 2012 11:19:19 +0200 Subject: [PATCH] Debug for 1643147 We need to get the return code _before_ executing the old prompt in order to not loose the returned value. --- liquidprompt.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liquidprompt.bash b/liquidprompt.bash index 52de509..2505667 100755 --- a/liquidprompt.bash +++ b/liquidprompt.bash @@ -708,12 +708,12 @@ __sb() __set_bash_prompt() { - # execute the old prompt - $LP_OLD_PROMPT_COMMAND - # as this get the last returned code, it should be called first __RET=$(__sl "$(__return_value $?)") + # execute the old prompt + $LP_OLD_PROMPT_COMMAND + # left of main prompt: space at right __JOBS=$(__sr "$(__jobcount_color)") __LOAD=$(__sr "$(__load_color)")