From 1dc5d72ac684509091e83acdf1564a3d135613d6 Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Tue, 21 Apr 2026 14:02:45 +0200 Subject: [PATCH] fix display of return code in prompt --- profile.d/prompt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profile.d/prompt.sh b/profile.d/prompt.sh index f168fcf..fb39eba 100644 --- a/profile.d/prompt.sh +++ b/profile.d/prompt.sh @@ -311,13 +311,13 @@ set_prompt() # Add exit status of the last command. # If it was successful, print a green check mark. Otherwise, print a red X. if [[ $Last_Command == 0 ]]; then - PS1+="\[${_ok_fg}${_bar_bg}\] [ \$Last_Command " + PS1+="\[${_ok_fg}${_bar_bg}\] [ $Last_Command " PS1+="\[${_ok_mark}${_bar_bg}\]${Checkmark} " # Add the elapsed time, then close the status section and return to bar bg. timer_stop PS1+="($timer_show)\[${_ok_fg}${_bar_bg}\] ] " else - PS1+="\[${_err_fg}${_err_bg}\] [ \$Last_Command " + PS1+="\[${_err_fg}${_err_bg}\] [ $Last_Command " PS1+="\[${_err_mark}${_err_bg}\]${FancyX} " timer_stop PS1+="($timer_show)\[${_err_fg}${_err_bg}\] ] "