-
Notifications
You must be signed in to change notification settings - Fork 0
/
completions.zsh
27 lines (25 loc) · 1.51 KB
/
completions.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*:*:*:*:*' menu 'select'
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' special-dirs 'true'
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
zstyle ':completion:*:*:*:*:processes' command 'ps -u $USER -o pid,user,comm -w -w'
zstyle ':completion::complete:*' use-cache '1'
zstyle '*' single-ignored 'show'
zstyle ':completion:*:sudo:*' command-path '/opt/homebrew/sbin' \
'/opt/homebrew/bin' \
'/usr/local/sbin' \
'/usr/local/bin' \
'/usr/sbin' \
'/usr/bin' \
'/sbin' \
'/bin' \
'/usr/X11R6/bin'
autoload -U compinit
compinit
() {
local zcompdump=${ZDOTDIR:-$HOME}/.zcompdump
if [[ -s $zcompdump && (! -s $zcompdump.zwc || $zcompdump -nt $zcompdump.zwc ) ]]; then
zcompile $zcompdump
fi
}