This commit is contained in:
fatalerrors
2026-04-15 16:33:45 +02:00
parent e77232b3ca
commit d27935eedd

View File

@@ -295,14 +295,16 @@ set_prompt()
if [[ $Last_Command == 0 ]]; then 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} " 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 else
PS1+="\[${_err_fg}${_err_bg}\] [ \$Last_Command " PS1+="\[${_err_fg}${_err_bg}\] [ \$Last_Command "
PS1+="\[${_err_mark}${_err_bg}\]${FancyX} " PS1+="\[${_err_mark}${_err_bg}\]${FancyX} "
timer_stop
PS1+="($timer_show)\[${_err_fg}${_err_bg}\]] ] "
fi 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 root, print the host in root colour. Otherwise use user colour.
if [[ $EUID -eq 0 ]]; then if [[ $EUID -eq 0 ]]; then