瀏覽代碼

[+] NF: Add Tea package manager

Fixes https://github.com/dylanaraps/neofetch/issues/2235
Hykilpikonna 2 年之前
父節點
當前提交
d7c4d493c9
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      neofetch

+ 3 - 1
neofetch

@@ -1832,6 +1832,7 @@ get_packages() {
             has bulge      && tot bulge list
             has pm         && tot pm list packages
 	        has squirrel   && tot cat /var/squirrel/repos/local/INDEX
+            has tea        && tot find "$HOME/.tea" -maxdepth 2 -mindepth 2 -type d
 
             # Using the dnf package cache is much faster than rpm.
             if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then
@@ -1863,7 +1864,7 @@ get_packages() {
             has cave    && dir "/var/db/paludis/repositories/cross-installed/*/data/*/ \
                                /var/db/paludis/repositories/installed/data/*/"
             has hardman && dir "/var/hpkg/packages/*"
-	    shopt -u nullglob
+	        shopt -u nullglob
             }
 
             # Other (Needs complex command)
@@ -1927,6 +1928,7 @@ get_packages() {
             has brew  && dir "$(brew --cellar)/* $(brew --caskroom)/*"
             has pkgin && tot pkgin list
             has dpkg  && tot dpkg-query -f '.\n' -W
+            has tea   && tot find "$HOME/.tea" -maxdepth 2 -mindepth 2 -type d
 
             has nix-store && {
                 nix-user-pkgs() {