zshsrc + zshenv: support hostnamectl iff hostname isn't present
authorMichael Prokop <mika@grml.org>
Tue, 26 May 2020 09:04:40 +0000 (11:04 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 26 May 2020 09:17:01 +0000 (11:17 +0200)
commit764227657c87ea0c1b85bedfbece407c3a02535d
tree17295a2a909db79f28f0712bb8825a01b29ddff7
parent1d927f2f77c896a86c0176bd878bd13075cdc87e
zshsrc + zshenv: support hostnamectl iff hostname isn't present

The hostname binary doesn't necessarily exist, while hostnamectl
might be available.

Closes: grml/grml-etc-core#96
etc/zsh/zshenv
etc/zsh/zshrc