[PR] dylanaraps/neofetch#2095 from tidux - Fix hostname detection for obscuring FQDN.
Upstream PR: https://github.com/dylanaraps/neofetch/pull/2095 Thanks to @tidux Co-authored-by: tidux <1330562+tidux@users.noreply.github.com>
This commit is contained in:
commit
09ea0c3356
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1556,7 +1556,7 @@ get_title() {
|
|||
|
||||
case $title_fqdn in
|
||||
on) hostname=$(hostname -f) ;;
|
||||
*) hostname=${HOSTNAME:-$(hostname)} ;;
|
||||
*) hostname=$(hostname | cut -d. -f1);;
|
||||
esac
|
||||
|
||||
title=${title_color}${bold}${user}${at_color}@${title_color}${bold}${hostname}
|
||||
|
|
Loading…
Reference in a new issue