Created
February 18, 2023 14:16
-
-
Save getchoo/ad4ecc66685dc2e9dd4026c288ac4803 to your computer and use it in GitHub Desktop.
a debloated, blazing fast system information tool written in posix sh only using posix-compliant command line utilities on posix-compliant libre gnu/linux distributions using gnu coreutils and openrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# fardfetch: a posix information tool | |
echo "$(id -un)@$(uname -n)" && printf "distro: " && grep -E '^NAME=' /etc/os-release | sed "s/NAME=//;s/\(\"\|'\)//g" && printf "kernel: " && uname -r && printf "uptime: " && uptime | cut -d" " -f 2 && printf "installed packages: " && opkg list-installed | wc -l && echo "shell: $SHELL" && printf "cpu model: " && grep -m 1 'cpu model' /proc/cpuinfo | awk '{for (i = 4; i <= NF; i++) printf "%s ",$i}' && printf "\n" && printf "memory: " && free -h | awk '{print $3,"/"$2}' | sed '1d;3d' && printf "\n" || exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment