Skip to content

Instantly share code, notes, and snippets.

@mcpcpc
Last active November 13, 2020 15:48
Show Gist options
  • Save mcpcpc/20c9b1ef9d8828b11f71df418cd2fd54 to your computer and use it in GitHub Desktop.
Save mcpcpc/20c9b1ef9d8828b11f71df418cd2fd54 to your computer and use it in GitHub Desktop.
#!/bin/sh
# tfetch
# a variation on Dylan Arap's pfetch and pfe
ramf="$(awk '/MemFree/ { printf "%.1f", $2/1024/1024 }' /proc/meminfo)"
ramt="$(awk '/MemTotal/ { printf "/%.1f GB", $2/1024/1024 }' /proc/meminfo)"
echo -e ""
echo -e " ( '> \033[1msince\033[0m: $(uptime -s)"
echo -e " (V) \033[1mram\033[0m: $ramf$ramt"
echo -e " <(__\\[ \033[1mkernel\033[0m: $(uname -r)"
echo -e ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment