pfetch: simplify
This commit is contained in:
parent
114ccfdda0
commit
3b234ae970
15
pfetch
15
pfetch
|
@ -3,11 +3,6 @@
|
||||||
#
|
#
|
||||||
# pfetch - Simple POSIX sh fetch script.
|
# pfetch - Simple POSIX sh fetch script.
|
||||||
|
|
||||||
die() {
|
|
||||||
printf '\033[31;1merror\033[m: %s.\n' "$@" >&2
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
log() {
|
log() {
|
||||||
# The 'log()' function handles the printing of information.
|
# The 'log()' function handles the printing of information.
|
||||||
# In 'pfetch' (and 'neofetch'!) the printing of the ascii art and info
|
# 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
|
# Once the cursor is at marker $[6], the script exits. This is the gist
|
||||||
# of how this "dynamic" printing and layout works.
|
# of how this "dynamic" printing and layout works.
|
||||||
#
|
#
|
||||||
# This method allows ascii art to be stored without markers for
|
# This method allows ascii art to be stored without markers for info
|
||||||
# information and it allows for easy swapping of information order and
|
# and it allows for easy swapping of info order and amount.
|
||||||
# amount.
|
|
||||||
#
|
#
|
||||||
# $[2] ___ $[3] goldie@KISS
|
# $[2] ___ $[3] goldie@KISS
|
||||||
# $[4](.· | $[5] os KISS Linux
|
# $[4](.· | $[5] os KISS Linux
|
||||||
|
@ -82,6 +76,11 @@ log() {
|
||||||
log=$((log + 1))
|
log=$((log + 1))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
die() {
|
||||||
|
printf '\033[31;1merror\033[m: %s.\n' "$@" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
get_title() {
|
get_title() {
|
||||||
case $kernel_name in
|
case $kernel_name in
|
||||||
Linux*|GNU*)
|
Linux*|GNU*)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user