From cb5dbf0436beb9c0c0c1b9b4a89470bb6de679f0 Mon Sep 17 00:00:00 2001 From: mTvare6 Date: Thu, 20 May 2021 21:26:09 +0530 Subject: [PATCH 1/2] (fix): list only installed not available --- uwufetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwufetch.c b/uwufetch.c index 87682ec..a69d98b 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -223,7 +223,7 @@ int pkgman() #ifdef __APPLE__ // we use a completely different struct because some commands in the other actually work in mac os, but they are not what you would expect (try running "apt"), but still doesn't work, maybe because of popen() struct package_manager pkgmans[] = { - {"brew list 2>/dev/null | wc -l | sed \"s/ //g\" && touch test", "(brew)"}}; + {"ls $(brew --cellar)| wc -l | sed \"s/ //g\" && touch test", "(brew)"}}; #else struct package_manager pkgmans[] = { {"apt list --installed 2> /dev/null | wc -l", "(apt)"}, From 35437610c36d006bb2627d2fdcfa8ba93d6b3ce7 Mon Sep 17 00:00:00 2001 From: mTvare <57838468+mTvare6@users.noreply.github.com> Date: Thu, 20 May 2021 21:30:10 +0530 Subject: [PATCH 2/2] (add): Ignore .DS_STORE --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index be2e87b..ad19c68 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ uwufetch *.vscode *.gz *.1 -.prettierrc \ No newline at end of file +.DS_STORE +.prettierrc