mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
packages: only show manager when packages > 0
This commit is contained in:
2
neofetch
2
neofetch
@@ -1264,7 +1264,7 @@ get_uptime() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_packages() {
|
get_packages() {
|
||||||
pkgs() { type -p "$1" >/dev/null && { ((packages+="$2")); managers+="$_, "; }; }
|
pkgs() { type -p "$1" >/dev/null && { ((packages+="$2"));(("$2">0))&&managers+="$_, "; }; }
|
||||||
tots() { IFS=$'\n' read -d "" -ra files < <($1); echo "${#files[@]}"; }
|
tots() { IFS=$'\n' read -d "" -ra files < <($1); echo "${#files[@]}"; }
|
||||||
dirc() { echo $#; }
|
dirc() { echo $#; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user