浏览代码

Get the Hostname

Main library should use ZSH native hostname function
Gustavo Barron 12 年之前
父节点
当前提交
cb501645d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/completion.zsh

+ 1 - 1
lib/completion.zsh

@@ -39,7 +39,7 @@ hosts=(
   "$_global_ssh_hosts[@]"
   "$_ssh_hosts[@]"
   "$_etc_hosts[@]"
-  `hostname`
+  "$HOST"
   localhost
 )
 zstyle ':completion:*:hosts' hosts $hosts