Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Fix hostname detection for obscuring FQDN. #2095

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,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}
Expand Down