From d27935eedd063eaf77e407f68a1972deb7bb1ce2 Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Wed, 15 Apr 2026 16:33:45 +0200 Subject: [PATCH] bugfix --- profile.d/prompt.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/profile.d/prompt.sh b/profile.d/prompt.sh index 692674a..88edea4 100644 --- a/profile.d/prompt.sh +++ b/profile.d/prompt.sh @@ -295,14 +295,16 @@ set_prompt() if [[ $Last_Command == 0 ]]; then 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_mark}${_err_bg}\]${FancyX} " + timer_stop + PS1+="($timer_show)\[${_err_fg}${_err_bg}\]] ] " fi - # Add the elapsed time, then close the status section and return to bar bg. - timer_stop - PS1+="($timer_show)\[${_ok_fg}${_bar_bg}\] ] " # If root, print the host in root colour. Otherwise use user colour. if [[ $EUID -eq 0 ]]; then