From b3660395859f6cd44d75a2b4cb1ad48856458be2 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Wed, 8 Dec 2021 12:10:29 -0600 Subject: clean out some completion cruft --- config/zsh/50-completion.zsh | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) (limited to 'config/zsh') diff --git a/config/zsh/50-completion.zsh b/config/zsh/50-completion.zsh index d62dd3b..23cb052 100644 --- a/config/zsh/50-completion.zsh +++ b/config/zsh/50-completion.zsh @@ -1,7 +1,7 @@ # initialize the completion system autoload -U compinit -zmodload zsh/complist compinit -d "${XDG_CACHE_HOME:-${HOME}/.cache}/zsh/zcompdump" +zmodload zsh/complist # complete only after the second consecutive tab setopt auto_menu @@ -12,42 +12,16 @@ zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} # use menu selection by default zstyle ':completion:*:default' menu select -# custom completion list for processes (just current user's) -zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w" -# special colors for kill completion listing -zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01' - # disable named-directories autocompletion zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories cdpath=(.) -# use /etc/hosts and known_hosts for hostname completion -[ -r ~/.ssh/known_hosts ] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=() -[ -r /etc/hosts ] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(