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 committed 2019-10-27 21:28:40 -05:00
1 parent d9e0ab644e
commit f9eb37c8e3
1 file changed
+4 -4
+4 -4
View File
@@ -1,15 +1,15 @@
#!/bin/sh #!/bin/sh
# #
# ufetch-guixsd - tiny system info for guixsd # ufetch-guix - tiny system info for guixsd
## INFO ## INFO
# user is already defined # user is already defined
host="$(hostname)" host="$(hostname)"
os='GuixSD' os='Guix System'
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime | sed 's/.*up \([^,]*\).*/\1/')"
packages="$(guix --list-installed | wc -l)" packages="$(guix package --list-installed | wc -l)"
shell="$(basename "$SHELL")" shell="$(basename "$SHELL")"
## UI DETECTION ## UI DETECTION