diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-04 22:45:56 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-04 22:45:56 +0200 |
commit | 1914d16f1693a3c31f8ad9e07b1469df1604d690 (patch) | |
tree | a8a623823adc077f7371de379b9e70eb7a7b485c /bin/common/saf | |
parent | 49bbf6906089b5d957e2a781002d32b811ae630d (diff) | |
parent | e850f3a1702b4d8b9d0cfec5c07d710b5201ed29 (diff) |
Merge branch 'main' of /var/git/dotfiles
Diffstat (limited to 'bin/common/saf')
-rwxr-xr-x | bin/common/saf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bin/common/saf b/bin/common/saf new file mode 100755 index 0000000..0c6fbc4 --- /dev/null +++ b/bin/common/saf @@ -0,0 +1,24 @@ +#!/bin/sh + +# Simple Ass Fetch by futxlii + +red="$(printf '\033[31m')" +green="$(printf '\033[32m')" +blue="$(printf '\033[34m')" +reset="$(printf '\033[0m')" + +for file in /etc/os-release /usr/lib/os-release +do + [ -f "$file" ] && . "$file" && break +done + +KERNEL="$(uname -r)" +UPTIME="$(uptime -p)"; UPTIME="${UPTIME##up }" +SHELL="$(basename "$SHELL")" + +cat <<EOF + ${red}- ${blue}${ID:-"unknown"} + ${red}- ${blue}$KERNEL + ${red}- ${blue}$UPTIME + ${red}- ${blue}$SHELL${reset} +EOF |