Replies: 1 comment 8 replies
-
What is the contents of your |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I use
.chezmoi.hostname
variable in my scripts to differentiate between individual machines. I bumped into a weird situation. In one of my machine, I use/etc/hosts
to point different services to127.0.0.1
, for development reasons. This totally wrecks the value of.chezmoi.hostname
. It doesn't matter what/etc/hostname
contains or whathostname
command returns. It just uses the first non-local domain from/etc/hosts
and considers that to be a hostname.I find this really confusing. Why did you decide to prioritize
/etc/hosts
parsing before/etc/hostname
? And is there any way to override this auto-detected value?Beta Was this translation helpful? Give feedback.
All reactions