From: Michael Prokop Date: Mon, 23 Aug 2021 08:42:13 +0000 (+0200) Subject: Merge remote-tracking branch 'origin/github/pr/124' X-Git-Tag: v0.19.1~8 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=1ec795d38a6b637f2c0d1cd219a0b12eab8e3a1e;hp=341fb5194daf358512ce07c8039cf06ec5271549;p=grml-etc-core.git Merge remote-tracking branch 'origin/github/pr/124' --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 4ddd4f9..a992e3f 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -901,14 +901,7 @@ function grmlcomp () { fi local localname - if check_com hostname ; then - localname=$(hostname) - elif check_com hostnamectl ; then - localname=$(hostnamectl --static) - else - localname="$(uname -n)" - fi - + localname="$(uname -n)" hosts=( "${localname}" "$_ssh_config_hosts[@]"