mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-11-17 19:20:28 +00:00
pfetch: skip displaying empty information.
This commit is contained in:
1 parent
98c976f72d
commit
4852dcaa44
1 file changed
+4
-1
@@ -56,6 +56,9 @@ log() {
|
|||||||
#
|
#
|
||||||
# $[6] /home/goldie $
|
# $[6] /home/goldie $
|
||||||
|
|
||||||
|
# End here if no data was found.
|
||||||
|
[ "$2" ] || return
|
||||||
|
|
||||||
# Move the cursor to the right, the width of the ascii art with an
|
# Move the cursor to the right, the width of the ascii art with an
|
||||||
# additional gap for text spacing.
|
# additional gap for text spacing.
|
||||||
printf '[%sC' "${ascii_width--1}"
|
printf '[%sC' "${ascii_width--1}"
|
||||||
@@ -93,7 +96,7 @@ get_title() {
|
|||||||
# shellcheck disable=SC2039
|
# shellcheck disable=SC2039
|
||||||
host=${HOSTNAME:-${hostname:-$(hostname)}}
|
host=${HOSTNAME:-${hostname:-$(hostname)}}
|
||||||
|
|
||||||
log "[3${PF_COL3:-1}m${user}${c7}@[3${PF_COL3:-1}m${host}" >&6
|
log "[3${PF_COL3:-1}m${user}${c7}@[3${PF_COL3:-1}m${host}" " " >&6
|
||||||
}
|
}
|
||||||
|
|
||||||
get_os() {
|
get_os() {
|
||||||
|
|||||||
Reference in new issue
Block a user