HomeDevCentral

Get hostname in $HOST or through `hostname`

Description

Get hostname in $HOST or through hostname

Summary:
This covers probably more case:

  • on Linux we've already $HOSTNAME
  • on FreeBSD we can read $HOST
  • on macOS we can call hostname

There is no need to query systemd flavour of hostname, as Linux systems
already publish the environment variable.

Test Plan: Tested on macOS

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D3162

Details

Provenance
derecksonAuthored on May 31 2023, 15:36
derecksonPushed on May 31 2023, 15:40
Reviewer
dereckson
Differential Revision
D3162: Get hostname in $HOST or through `hostname`
Parents
rMDba48fbe526ff: Search JetBrains IDE configuration for macOS
Branches
Unknown
Tags
Unknown