uptime fix

This commit is contained in:
2023-05-05 07:10:06 -04:00
parent 3a9f8f39c4
commit bacd3fc293
+2 -1
View File
@@ -194,8 +194,9 @@ function promptcmd() {
fi fi
# system uptime # system uptime
# TODO: move this to a function
if [ $fShowUptime -eq 1 ] ; then if [ $fShowUptime -eq 1 ] ; then
sysUptime=$(uptime| cut -d "," -f 1-2 | cut -d " " -f 4-5,7) sysUptime=$(uptime| cut -d "," -f 1-2 | cut -d " " -f 4-)
PS1="${PS1}${clrBrackets}[${clrUptime}${sysUptime}${clrBrackets}]${clrLines}\342\224\200" PS1="${PS1}${clrBrackets}[${clrUptime}${sysUptime}${clrBrackets}]${clrLines}\342\224\200"
fi fi