From f9eb37c8e3434cc2fd388c3a54018668430fb8cb Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sun, 27 Oct 2019 21:28:40 -0500 Subject: [PATCH] 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. --- ufetch-guixsd => ufetch-guix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename ufetch-guixsd => ufetch-guix (91%) diff --git a/ufetch-guixsd b/ufetch-guix similarity index 91% rename from ufetch-guixsd rename to ufetch-guix index e344027..2a5cab5 100755 --- a/ufetch-guixsd +++ b/ufetch-guix @@ -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