mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-01 05:52:34 +07:00
Fix NixOS uptime.
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
||||
host="$(hostname)"
|
||||
os="$(nixos-version)"
|
||||
kernel="$(uname -sr)"
|
||||
uptime="$(uptime -p | sed 's/up //')"
|
||||
uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')"
|
||||
packages="$(ls -d -1 /nix/store/ | wc -l)"
|
||||
shell="$(basename ${SHELL})"
|
||||
if [ -z "${WM}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user