fetch

A MSYS2-compatible sys-info prompt
Log | Files | Refs | README | LICENSE

commit c9333c48818c117fceca2d266b490ae5f8ac521d
parent 30669a595d9e04f295e6ae9882b545957c26ca0a
Author: Byron Torres <b@torresjrjr.com>
Date:   Thu, 18 Feb 2021 05:42:15 +0000

Fix portability for sshd

Diffstat:
Mfetch | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fetch b/fetch @@ -58,7 +58,7 @@ _shell() { printf "$1" "$($(readlink /proc/$PPID/exe) --version | head -1)" } _sshd() { - sshd_pids=$(ps | awk 'BEGIN{ORS=" "}; /sshd/{print $1}') + sshd_pids=$(ps x | awk 'BEGIN{ORS=" "}; /sshd/{print $1}') printf "$1" "${sshd_pids:---}" } _tmux() {