blob: 32febcb5bf3f724b894343e483f2fe20db0d9011 (
plain) (
blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# -*- mode: sh -*-
# vim: ft=zsh
# default -> remove the /
[[ $WORDCHARS = '*?_-.[]~=/&;!#$%^(){}<>' ]] &&
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
### ZStyle
## completion
# TODO: a lot of this is stolen from grml; probably figure out more details
zstyle ':completion:*:complete:*' cache-path ~/.cache/zsh
zstyle ':completion:*' use-cache yes
# detected options that aren't specified
zstyle ':completion:*:messages' format %d
zstyle ':completion:*:options' auto-description %d
zstyle ':completion:*:options' description no
zstyle ':completion:*' menu 'select=5'
zstyle ':completion:*:matches' group yes
zstyle ':completion:*' group-name ''
zstyle ':completion:*:descriptions' format 'completing %B%d%b'
zstyle ':completion:*' verbose true
zstyle ':completion:*:-command-:*' verbose false
# allow completing uppercase options from lowercase inputs
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
zstyle ':completion:*:processes' command 'ps -au$USER'
zstyle ':completion:*:processes-names' command 'ps c -u$USER -o comm | uniq'
zstyle ':completion:*:manuals' separate-sections true
zstyle ':completion:*:manuals.*' insert-sections true
zstyle ':completion:*:man:*' menu yes select
zstyle ':completion:*' special-dirs ..
if (( ${#ls_colors} )); then
zstyle ':completion:*:default' list-colors $ls_colors
elif [[ -n $LS_COLORS ]]; then
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
fi
# you may want the following in zshrc.local...
# :completion:*:hosts list of hosts
## vcs_info
zstyle ':vcs_info:*' use-simple true
zstyle ':vcs_info:*' enable git darcs fossil
zstyle ':vcs_info:*' formats '(%b)'
zstyle ':vcs_info:*' actionformats '(%b : %a)'
zstyle ':vcs_info:*' branchformat '%b'
zstyle ':vcs_info:*' max-exports 1
|