Skip to content

Commit 09ea0c3

Browse files
hykilpikonnatidux
andcommitted
[PR] dylanaraps/neofetch#2095 from tidux - Fix hostname detection for obscuring FQDN.
Upstream PR: dylanaraps/neofetch#2095 Thanks to @tidux Co-authored-by: tidux <1330562+tidux@users.noreply.github.com>
2 parents d610559 + 4dc28cd commit 09ea0c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neofetch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ get_title() {
15561556

15571557
case $title_fqdn in
15581558
on) hostname=$(hostname -f) ;;
1559-
*) hostname=${HOSTNAME:-$(hostname)} ;;
1559+
*) hostname=$(hostname | cut -d. -f1);;
15601560
esac
15611561

15621562
title=${title_color}${bold}${user}${at_color}@${title_color}${bold}${hostname}

0 commit comments

Comments
 (0)