From 042b85dca48aa2cb4d4c42d46b97bca6b6f2edf6 Mon Sep 17 00:00:00 2001 From: Will Boyce Date: Tue, 29 Apr 2014 15:30:38 +0100 Subject: [PATCH] don't autocomplete stuff beginning with underscore --- lib/completion.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/completion.zsh b/lib/completion.zsh index c54249c52..9644a7e0f 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -44,7 +44,11 @@ zstyle ':completion:*:*:*:users' ignored-patterns \ named netdump news nfsnobody nobody nscd ntp nut nx obsrun openvpn \ operator pcap polkitd postfix postgres privoxy pulse pvm quagga radvd \ rpc rpcuser rpm rtkit scard shutdown squid sshd statd svn sync tftp \ - usbmux uucp vcsa wwwrun xfs + usbmux uucp vcsa wwwrun xfs '_*' + +# Do not complete things beginning with _ +zstyle ':completion:*:functions' ignored-patterns '_*' +zstyle ':completion:*:parameters' ignored-patterns '_*' # ... unless we really want to. zstyle '*' single-ignored show