mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-11-01 19:20:30 +00:00
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:
1 file changed
+4
-4
@@ -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
|
||||||
Reference in new issue
Block a user