Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 73bb634

Browse files
authoredMay 2, 2024··
[PR] #265 from felipecrs: Improve pkgx
Improve pkgx integration
2 parents 2a87f1d + 6816679 commit 73bb634

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎neofetch

+7-2
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,13 @@ get_packages() {
21012101
fi
21022102
fi
21032103

2104+
if has pkgx && [[ -d "$HOME/.local/bin" ]]; then
2105+
# https://github.com/pkgxdev/pkgx/issues/985#issuecomment-2080999008
2106+
_pkgxpkgs="$(grep -rIhoP 'exec pkgx \+\K[^ ]+' "$HOME/.local/bin" | sort -u)"
2107+
tot echo "$_pkgxpkgs"
2108+
unset _pkgxpkgs
2109+
fi
2110+
21042111
# OS-specific package managers.
21052112
case $os in
21062113
Linux|BSD|"iPhone OS"|Solaris|illumos|Interix)
@@ -2129,7 +2136,6 @@ get_packages() {
21292136
has pm && tot-safe pm list packages
21302137
has evox && tot cat /var/evox/packages/DB
21312138
has squirrel && tot ls /var/packages
2132-
has pkgx && tot find "$HOME/.pkgx" -maxdepth 2 -mindepth 2 -type d
21332139
has anise && tot anise s --installed
21342140
has am && pac "$(am -f --less)"
21352141

@@ -2275,7 +2281,6 @@ get_packages() {
22752281
has brew && dir "$(brew --cellar)/* $(brew --caskroom)/*"
22762282
has pkgin && tot pkgin list
22772283
has dpkg && tot dpkg-query -f '.\n' -W
2278-
has tea && tot find "$HOME/.tea" -maxdepth 2 -mindepth 2 -type d
22792284

22802285
has nix-store && {
22812286
nix-user-pkgs() {

0 commit comments

Comments
 (0)
Please sign in to comment.