aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 12:59:56 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 12:59:56 +0300
commit3b234ae970d9a487e40a090e6fd2ef2d040c5c7b (patch)
tree158bd18da69ac59d403dcde64295d74e5167372e
parent114ccfdda023fda8dce06843a18ec1df3a8df710 (diff)
downloadpfetch-3b234ae970d9a487e40a090e6fd2ef2d040c5c7b.tar.gz
pfetch: simplify
-rwxr-xr-xpfetch15
1 files changed, 7 insertions, 8 deletions
diff --git a/pfetch b/pfetch
index ed27d8c..401be56 100755
--- a/pfetch
+++ b/pfetch
@@ -3,11 +3,6 @@
#
# pfetch - Simple POSIX sh fetch script.
-die() {
- printf '\033[31;1merror\033[m: %s.\n' "$@" >&2
- exit 1
-}
-
log() {
# The 'log()' function handles the printing of information.
# In 'pfetch' (and 'neofetch'!) the printing of the ascii art and info
@@ -45,9 +40,8 @@ log() {
# Once the cursor is at marker $[6], the script exits. This is the gist
# of how this "dynamic" printing and layout works.
#
- # This method allows ascii art to be stored without markers for
- # information and it allows for easy swapping of information order and
- # amount.
+ # This method allows ascii art to be stored without markers for info
+ # and it allows for easy swapping of info order and amount.
#
# $[2] ___ $[3] goldie@KISS
# $[4](.ยท | $[5] os KISS Linux
@@ -82,6 +76,11 @@ log() {
log=$((log + 1))
}
+die() {
+ printf '\033[31;1merror\033[m: %s.\n' "$@" >&2
+ exit 1
+}
+
get_title() {
case $kernel_name in
Linux*|GNU*)