mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-06 00:03:38 +07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff21a96c8d | ||
|
|
9c7e593b10 |
+6
-1
@@ -9,9 +9,14 @@ host="$(hostname)"
|
||||
os="$(nixos-version)"
|
||||
kernel="$(uname -sr)"
|
||||
uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')"
|
||||
packages="$(ls -d -1 /nix/store/*/ | wc -l)"
|
||||
shell="$(basename "${SHELL}")"
|
||||
|
||||
for profile in $NIX_PROFILES; do
|
||||
if [ -d "$profile" ]; then
|
||||
packages="$((packages + $( (nix-store -q --requisites "$profile" 2>/dev/null || printf '') | wc -l)))"
|
||||
fi
|
||||
done
|
||||
|
||||
## UI DETECTION
|
||||
|
||||
parse_rcs() {
|
||||
|
||||
Reference in New Issue
Block a user