mirror of
https://github.com/dylanaraps/neofetch
synced 2025-12-30 00:05:08 -05:00
packages: only show manager when packages > 0
This commit is contained in:
parent
094fca97bf
commit
e3afa265f9
2
neofetch
2
neofetch
@ -1264,7 +1264,7 @@ get_uptime() {
|
||||
}
|
||||
|
||||
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[@]}"; }
|
||||
dirc() { echo $#; }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user