X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshenv;h=7397397c3f7f854f4ab5588dbab0f53d87636caf;hb=99ad5c14ca391af98703fca561d40497e94d1469;hp=9b7092109a7fcf38a0e2adaf882da4dbcb9e1baf;hpb=594a33254b03d328d820a0db11ac071bb6728710;p=grml-etc-core.git diff --git a/etc/zsh/zshenv b/etc/zsh/zshenv index 9b70921..7397397 100644 --- a/etc/zsh/zshenv +++ b/etc/zsh/zshenv @@ -27,11 +27,9 @@ # set environment variables (important for autologin on tty) if [ -n "${HOSTNAME}" ] ; then - export HOSTNAME="${HOSTNAME}" -elif [[ -x $(which hostname) ]] ; then - export HOSTNAME="$(hostname)" -elif [[ -x $(which hostnamectl) ]] ; then - export HOSTNAME="$(hostnamectl --static)" + export HOSTNAME="${HOSTNAME}" +else + export HOSTNAME="$(uname -n)" fi # make sure /usr/bin/id is available