X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=blobdiff_plain;f=etc%2Fzsh%2Fzshenv;h=8e4ae78234718aeae80ea60cb71216994a20c93d;hp=9b7092109a7fcf38a0e2adaf882da4dbcb9e1baf;hb=41249966740c33a591b9dcc14edc37ddaa595bb6;hpb=6aef288c003af51e9d729610536d43ab1540480e diff --git a/etc/zsh/zshenv b/etc/zsh/zshenv index 9b70921..8e4ae78 100644 --- a/etc/zsh/zshenv +++ b/etc/zsh/zshenv @@ -32,6 +32,8 @@ elif [[ -x $(which hostname) ]] ; then export HOSTNAME="$(hostname)" elif [[ -x $(which hostnamectl) ]] ; then export HOSTNAME="$(hostnamectl --static)" +else + export HOSTNAME="$(uname -n)" fi # make sure /usr/bin/id is available