From bee887a3e0be5b4fa6ee3173f307eb9cd5633074 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 3 Jun 2018 08:25:30 +1000 Subject: [PATCH] misc: docs --- neofetch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neofetch b/neofetch index 00bdcf04..63f1be8d 100755 --- a/neofetch +++ b/neofetch @@ -1237,6 +1237,9 @@ get_uptime() { } get_packages() { + # pkgs: Run package manager if it exists. + # tots: Count lines in command output. + # dirc: Count files or dirs in a glob. pkgs() { type -p "$1" >/dev/null && { ((packages+="$2"));(("$2">0))&&managers+="$_, "; }; } tots() { IFS=$'\n' read -d "" -ra files < <($1); echo "${#files[@]}"; } dirc() { echo $#; }