fetch

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

commit fcab70437618450db087f89d071532320fb477bd
parent 04e8cf6a72892a94161296dc996abdc287d66427
Author: Byron Torres <b@torresjrjr.com>
Date:   Wed,  2 Mar 2022 12:08:03 +0000

Use $PRETTY_NAME from /etc/os-release in _os()

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

diff --git a/fetch b/fetch @@ -47,7 +47,8 @@ _title() { env printf "$1" "$(whoami)" "$(uname -n)" "$(date -R)" } _os() { - env printf "$1" "$(uname -o) $(uname -r)" + [ -r /etc/os-release ] && . /etc/os-release || PRETTY_NAME=$(uname -o) + env printf "$1" "$PRETTY_NAME $(uname -r)" } _uptime() { [ -r /proc/uptime ] && {