mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-30 19:00:31 +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)"
|
host="$(hostname)"
|
||||||
os="$(nixos-version)"
|
os="$(nixos-version)"
|
||||||
kernel="$(uname -sr)"
|
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)"
|
packages="$(ls -d -1 /nix/store/ | wc -l)"
|
||||||
shell="$(basename ${SHELL})"
|
shell="$(basename ${SHELL})"
|
||||||
if [ -z "${WM}" ]; then
|
if [ -z "${WM}" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user