mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-15 10:29:50 +00:00
Add support for Nix package manager in ufetch-macos
This commit is contained in:
1 parent
ccd8c6044d
commit
26ead3322b
1 file changed
+3
-1
+3
-1
@@ -13,7 +13,9 @@ shell="$(basename "${SHELL}")"
|
||||
|
||||
## PACKAGE MANAGER DETECTION
|
||||
|
||||
if [ -x "$(command -v pkgin)" ]; then
|
||||
if [ -x "$(command -v nix-info)" ]; then
|
||||
packages="$(ls -d -1 /nix/store/*/ | wc -l)"
|
||||
elif [ -x "$(command -v pkgin)" ]; then
|
||||
packages="$(pkgin list | wc -l)"
|
||||
elif [ -x "$(command -v brew)" ]; then
|
||||
brew_packages="$(brew list --formulae | wc -l)"
|
||||
|
||||
Reference in new issue
Block a user