X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshenv;h=8e4ae78234718aeae80ea60cb71216994a20c93d;hb=94d6068324284c8c75bc6774ab73bfa29cb94374;hp=9b7092109a7fcf38a0e2adaf882da4dbcb9e1baf;hpb=594a33254b03d328d820a0db11ac071bb6728710;p=grml-etc-core.git 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