mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-29 12:41:08 +00:00
Fix NixOS uptime.
This commit is contained in:
1 parent
20b559f447
commit
d66a031bc2
1 file changed
+1
-1
+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