fetch

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

commit 57363c41c574b67cbe8bc3c50c79b06bf7b3ea52
parent 05cf9d8c7b29bfba424d315a6b6d2ddca2e5d560
Author: Byron Torres <b@torresjrjr>
Date:   Tue,  2 Feb 2021 00:07:27 +0000

Correct graphic() border, Use grep -q in _tmux()

Diffstat:
Mfetch | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/fetch b/fetch @@ -17,15 +17,15 @@ main() { ## Graphic graphic() { - #b=':::::::::::::::::::::::::::::::::::::::::::::' # status background - printf "${c2}\ - ~ ${b} - .-. ${b} - /\`v\`\\ ${b} - (/ \\) ${b} -======\"=\"===< ${b} - |_| ${b} - ${b} + #b=': ' # status border + printf "\ +${c2} ~ ${b} +${c2} .-. ${b} +${c2} /\`v\`\\ ${b} +${c2} (/ \\) ${b} +${c2}=====\"=\"===< ${b} +${c2} |_| ${b} +${c2} ${b} ${c0}" } @@ -63,7 +63,7 @@ _sshd() { printf "$1" "${sshd_pids:---}" } _tmux() { - ps | grep tmux >/dev/null && tmux_sessions=$( + ps | grep -q tmux && tmux_sessions=$( tmux ls \ | sed \ -e 's/(created[^)]*)//' -e 's/(attached)/@/' \