[F] Fix hostname compatibility
https://github.com/dylanaraps/neofetch/pull/2095 https://github.com/dylanaraps/neofetch/issues/2094
This commit is contained in:
@@ -1604,7 +1604,10 @@ get_title() {
|
|||||||
|
|
||||||
case $title_fqdn in
|
case $title_fqdn in
|
||||||
on) hostname=$(hostname -f) ;;
|
on) hostname=$(hostname -f) ;;
|
||||||
*) hostname=$(hostname | cut -d. -f1);;
|
*)
|
||||||
|
hostname=${HOSTNAME:-$(hostname)}
|
||||||
|
hostname=${hostname%.*}
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
title=${title_color}${bold}${user}${at_color}@${title_color}${bold}${hostname}
|
title=${title_color}${bold}${user}${at_color}@${title_color}${bold}${hostname}
|
||||||
|
|||||||
Reference in New Issue
Block a user