diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-07-29 11:48:39 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-07-29 11:48:39 +0200 |
commit | 55378ac493716f15fd68d73fb77fcade4a667d99 (patch) | |
tree | e31d021a68b5865857501dffaebe07a6e5e02235 /bin/common/saf | |
parent | 1460eae0d754818dffdaadb744571cbfce1a8378 (diff) |
added saf
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 |