fetch

MSYS2-compatible system info prompt
git clone https://git.torresjrjr.com/fetch.git
Log | Files | Refs | README | LICENSE

commit 449ce450226c1bdb8e6b9114a783c47e8b7c6c17
parent 6fe8c788178d197fbd7c7e74fc7a2884d3295e4e
Author: Byron Torres <b@torresjrjr.com>
Date:   Mon, 28 Mar 2022 00:46:17 +0100

Improve _shell() with '$SHLVL

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

diff --git a/fetch b/fetch @@ -61,7 +61,7 @@ _uptime() { } } _shell() { - env printf "$1" "$(readlink /proc/$PPID/exe)" + env printf "$1" "$(readlink /proc/$PPID/exe) '$SHLVL" } _sshd() { pids=$(ps ax | awk '/sshd[^@]*@pts/ || /sshd$/ {printf $NF " "}')