mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-11-09 16:21:16 +00:00
amend package count
else the args are too long for ls.
This commit is contained in:
1 parent
d7f9d6998d
commit
2b45ab3d5c
1 file changed
+1
-1
+1
-1
@@ -10,7 +10,7 @@ host="$(hostname)"
|
|||||||
os="$(nixos-version)"
|
os="$(nixos-version)"
|
||||||
kernel="$(uname -sr)"
|
kernel="$(uname -sr)"
|
||||||
uptime="$(uptime -p | sed 's/up //')"
|
uptime="$(uptime -p | sed 's/up //')"
|
||||||
packages="$(ls -d -1 /nix/store/* | wc -l)"
|
packages="$(ls -d -1 /nix/store/ | wc -l)"
|
||||||
shell="$(basename ${SHELL})"
|
shell="$(basename ${SHELL})"
|
||||||
if [ -z "${WM}" ]; then
|
if [ -z "${WM}" ]; then
|
||||||
WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)"
|
WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)"
|
||||||
|
|||||||
Reference in new issue
Block a user