Skip to content

Commit

Permalink
add postmarketOS support (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkrsv committed Apr 28, 2021
1 parent 5bd25ab commit ace7d51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ afetch is written in C99, meaning that it should be able to be compiled with alm
* FreeBSD
* Gentoo
* Parabola
* postmarketOS
* Manjaro
* NetBSD
* NixOS
Expand Down
11 changes: 11 additions & 0 deletions src/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,17 @@ void *os()
info.col8 = BCYAN " (___________)";
info.getPkgCount =
"dpkg -l | tail -n+6 | wc -l";
} else if (strncmp(osname, "postmarketOS", 13) == 0) {
info.col1 = BGREEN " /\\ \n";
info.col2 = BGREEN " / \\ ";
info.col3 = BGREEN " / \\ ";
info.col4 = BGREEN " /\\__ \\ ";
info.col5 = BGREEN " / /\\ _\\ ";
info.col6 = BGREEN " / ___\\/ \\ ";
info.col7 = BGREEN " / \\ \\ ";
info.col8 = BGREEN "/_____/________\\";
info.getPkgCount =
"grep 'P:' /lib/apk/db/installed | wc -l";
} else if (strncmp(osname, "Slackware", 10) == 0) {
info.col1 = BBLUE " ________\n";
info.col2 = BBLUE " / ______| ";
Expand Down

0 comments on commit ace7d51

Please sign in to comment.