fetch

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

commit 0b0e9271cea28cfce91ffa1a6d8d4224ac8daf7c
parent c6ed4646cc8ad47734a97e3e0a7d61958ae7c0d7
Author: Byron Torres <b@torresjrjr.com>
Date:   Thu, 18 Feb 2021 06:22:33 +0000

Fix tmux grep self-reference bug

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

diff --git a/fetch b/fetch @@ -62,7 +62,7 @@ _sshd() { printf "$1" "${sshd_pids:---}" } _tmux() { - ps a | grep -q tmux && tmux_sessions=$( + ps a | grep -v 'grep' | grep -q 'tmux' && tmux_sessions=$( tmux ls \ | sed \ -e 's/(created[^)]*)//' -e 's/(attached)/@/' \