Browse Source

Get the Hostname

Main library should use ZSH native hostname function
Gustavo Barron 12 years ago
parent
commit
cb501645d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/completion.zsh

+ 1 - 1
lib/completion.zsh

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