From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Thu, 26 Nov 2020 01:21:40 +0000 (-0500) Subject: make ufetch more versatile X-Git-Tag: v0.0.1~84 X-Git-Url: https://git.armaanb.net/?a=commitdiff_plain;h=12578ab737136cc392ea4f5b8e931352ef1f4fb7;hp=a6e2bbb245b7671b25d05fff41ba95560248c98b;p=bin.git make ufetch more versatile * Replace 'hostname' command * Un-hardcode OS name --- diff --git a/ufetch b/ufetch index 7e961eb..30f25f9 100755 --- a/ufetch +++ b/ufetch @@ -2,8 +2,8 @@ # ufetch-armaan. My customized version of ufetch that doesn't print the ascii art, and doesn't spend time looking things up like the DE. Full credit goes to jschx (Joe Schillinger), the author of ufetch. ## INFO -host="$(hostname)" -os='Debian unstable' +host="$(cat /etc/hostname | head -n 1)" +os="$(cat /etc/os-release | head -n 1 | cut -d '"' -f 2)" kernel="$(uname -sr)" uptime="$(uptime -p | cut -d ',' -f 1-2 | tail -c +4)" shell="zsh"