Merge remote-tracking branch 'origin/github/pr/124'
authorMichael Prokop <mika@grml.org>
Mon, 23 Aug 2021 08:42:13 +0000 (10:42 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 23 Aug 2021 08:42:13 +0000 (10:42 +0200)
etc/zsh/zshrc

index 4ddd4f9..a992e3f 100644 (file)
@@ -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[@]"