From bacd3fc2939245467bb37300015eae46bc359a2e Mon Sep 17 00:00:00 2001 From: Charles D Date: Fri, 5 May 2023 07:10:06 -0400 Subject: [PATCH] uptime fix --- prompt.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prompt.sh b/prompt.sh index df8e89f..c5daebb 100644 --- a/prompt.sh +++ b/prompt.sh @@ -194,8 +194,9 @@ function promptcmd() { fi # system uptime + # TODO: move this to a function 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" fi