-
Notifications
You must be signed in to change notification settings - Fork 7
/
completion.zsh
30 lines (25 loc) · 1.22 KB
/
completion.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
28
29
30
autoload -Uz compinit && compinit
autoload -U colors && colors
# Get completion above command line
setopt noalwayslastprompt
setopt noauto_remove_slash
setopt list_types
setopt complete_in_word
ZSHCAHCEDIR=/tmp/$USER-zsh-cache
zstyle ':completion:*' cache-path $ZSHCAHCEDIR
zstyle ':completion:*' use-cache on
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' file-sort modification
zstyle ':completion:*' list-suffixes true
zstyle ':completion:*:approximate:*' max-errors 2
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;35'
zstyle ':completion:*:*:kill:*:processes' command 'ps xo pid,user:10,cmd'
zstyle ':completion:incremental:*' completer _complete _correct
zstyle ':completion:predict:*' completer _complete
zstyle ':completion:*:functions' ignored-patterns '_*'
zstyle ':completion:*' squeeze-slashes 'yes'
zstyle ':completion:*:matches' group 'yes'
zstyle ':completion:*:descriptions' format "%{$fg[yellow]%}%B---- %d%b%{${reset_color}%}"
zstyle ':completion:*:messages' format "%{$fg[blue]%}%B---- %d%b%{${reset_color}%}"
zstyle ':completion:*:warnings' format "%{$fg[red]%}%B---- no match for:%b%{${reset_color}%} %d"