I added loads of entries to my /etc/hosts file to aid in adblocking and tracking on the internet (a list I got from github https://github.com/StevenBlack/hosts).
However, zsh now incorporates all the entries in the hosts file when searching for autocompletes. This means I can be moving a simple file with a long name and I type
mv w<TAB> and I get hundreds of autocomplete entries with the filename I want buried in there somewhere.
Is there a way to restrict the sources zsh uses for autocompletion?
Edit: here are what I think are the relevant parts of my zshrc:
zstyle ':completion:*' completer _complete _ignored _approximate zstyle ':completion:*' list-colors '' zstyle ':completion:*' matcher-list '' zstyle ':completion:*' menu select=1 zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s autoload -Uz compinit autoload -U zutil autoload -U complist compinit