diff --git a/neofetch b/neofetch index 18fe17b2..9eb6e6fc 100755 --- a/neofetch +++ b/neofetch @@ -1604,7 +1604,10 @@ get_title() { case $title_fqdn in on) hostname=$(hostname -f) ;; - *) hostname=$(hostname | cut -d. -f1);; + *) + hostname=${HOSTNAME:-$(hostname)} + hostname=${hostname%.*} + ;; esac title=${title_color}${bold}${user}${at_color}@${title_color}${bold}${hostname}