summaryrefslogtreecommitdiff
path: root/60_Completion.zsh
blob: 69dae432ef51c8fe27d36cf94b40ea2a5c72cb62 (plain)
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
31
32
33
34
35
##
## Part of configuration files for Zsh 4
## by Hugues Hiegel <hugues@hiegel.fr>
## 
## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS
##
## You are encouraged to use, modify, and redistribute
## these files with or without this notice.
## 

# Show groups for completion results
zstyle ':completion:*' group-name ''
zstyle ':completion:*' format '%B---------------[ %d ]%b'
# Uses dircolors for colors
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}

zstyle ':completion:*' completer _complete _expand
zstyle ':completion:*' ignore-parents parent pwd directory

# Displays selection menu only when there is 2 items or more
zstyle ':completion:*' menu select=2
#zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
#zstyle ':completion:*' matcher-list '+l:|=* r:|=*' '+' '+m:{a-z}={A-Z} m:{a-zA-Z}={A-Za-z}' 'r:|[._-/]=** r:|=**'
zstyle ':completion:*' preserve-prefix '//[^/]##/'
zstyle ':completion:*' prompt '%e errors found >'
zstyle ':completion:*' select-prompt '%B[ %p ]%b'
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' use-compctl true
# End of lines added by compinstall

typeset -A ZLS_COLOURS
ZLS_COLOURS[ma]=7

autoload -Uz compinit
compinit -i