From addad286acc5149cbe53aa219195a657dfc9247e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 8 Dec 2020 19:38:52 +0100 Subject: zsh: use .hosts for hostname completion --- user/zsh/zshrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'user') diff --git a/user/zsh/zshrc b/user/zsh/zshrc index 195eaedb..55cf4aa7 100644 --- a/user/zsh/zshrc +++ b/user/zsh/zshrc @@ -67,6 +67,8 @@ bindkey '\e ' hist-complete zstyle ':completion:*' matcher-list 'm:{a-zA-Z-_}={A-Za-z_-}' 'r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' completer _expand _complete _match +zstyle -e ':completion:*' hosts 'reply=($(< ~/.hosts))' + # General configuration if [[ $TERM == "dumb" ]] -- cgit 1.4.1