From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Sat, 14 Nov 2020 16:55:38 +0000 (-0500) Subject: fix uptime X-Git-Tag: v0.0.1~88 X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=ab6560396d0ca4de6da9bf67809943a4eec108f5 fix uptime --- diff --git a/README.md b/README.md index 36e299e..aaf6b96 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # Shell scripts -Some linux shell scripts that I use. Many of them are not mine, and will be marked accordingly within the script +Some shell scripts that make my life a bit easier. Most of them are inspired by other people's work and are marked accordingly in the script. -Compatability is not a priority as long as they run on a modern linux system +WTFPLv2 Armaan Bhojwani 2020, see the COPYING file for more information diff --git a/ufetch b/ufetch index dff7d01..eb91b8b 100755 --- a/ufetch +++ b/ufetch @@ -5,7 +5,7 @@ host="$(hostname)" os='Debian unstable' kernel="$(uname -sr)" -uptime="$(uptime | cut -d ':' -f 1 | tail -c +2)$(uptime | echo "scale=1; $(cut -d ':' -f 2)/60" | bc ) hours" +uptime="$(uptime -p | cut -d ',' -f 1-2 | tail -c +4)" shell="zsh" ui="KDE Plasma"