diff options
author | Alan Pearce | 2020-12-08 19:38:52 +0100 |
---|---|---|
committer | Alan Pearce | 2020-12-08 20:34:42 +0100 |
commit | addad286acc5149cbe53aa219195a657dfc9247e (patch) | |
tree | 1c343fa6f6014d777e57fd3d1c1a092f2a24f405 /user/zsh | |
parent | 175e59df74b5c4d8ce2bffc3b01ff8c7581b0624 (diff) | |
download | nixfiles-addad286acc5149cbe53aa219195a657dfc9247e.tar.lz nixfiles-addad286acc5149cbe53aa219195a657dfc9247e.tar.zst nixfiles-addad286acc5149cbe53aa219195a657dfc9247e.zip |
zsh: use .hosts for hostname completion
Diffstat (limited to 'user/zsh')
-rw-r--r-- | user/zsh/zshrc | 2 |
1 files changed, 2 insertions, 0 deletions
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" ]] |