cb501645d70ad1e50b6b3d3553618e585074533f
- Author
- Gustavo Barron <cicloid@42fu.com>
- Committer
- Gustavo Barron <cicloid@42fu.com>
- Date
Message
Get the Hostname
Main library should use ZSH native hostname function
Diff
1diff --git a/lib/completion.zsh b/lib/completion.zsh
2index 0e5d480ff4923f147ac2355504f16f068116c720..b964595edfbaec82a87a7b44c1c3b2088dbd3a69 100644
3--- a/lib/completion.zsh
4+++ b/lib/completion.zsh
5@@ -39,7 +39,7 @@ hosts=(
6 "$_global_ssh_hosts[@]"
7 "$_ssh_hosts[@]"
8 "$_etc_hosts[@]"
9- `hostname`
10+ "$HOST"
11 localhost
12 )
13 zstyle ':completion:*:hosts' hosts $hosts