Fixes for Guix.

* ufetch-guixsd: Rename this file...
* ufetch-guix: ... to this.
(os): Update to upstream-preferred "Guix System".
(uptime): Fix for 'uptime' implementation present in Guix.
(packages): Fix calling syntax.
This commit is contained in:
Eric Bavier
2019-10-27 21:28:40 -05:00
parent 1cd6e36b4a
commit 11f0399f59
+4 -4
View File
@@ -1,15 +1,15 @@
#!/bin/sh
#
# ufetch-guixsd - tiny system info for guixsd
# ufetch-guix - tiny system info for guixsd
## INFO
# user is already defined
host="$(hostname)"
os='GuixSD'
os='Guix System'
kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')"
packages="$(guix --list-installed | wc -l)"
uptime="$(uptime | sed 's/.*up \([^,]*\).*/\1/')"
packages="$(guix package --list-installed | wc -l)"
shell="$(basename "$SHELL")"
## UI DETECTION