summaryrefslogtreecommitdiff
path: root/dot_config/zsh/zshrc.style
blob: d2a5514c147bc6a9fa48f675e4c63ced52693029 (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
# vim: ft=zsh
### 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 ..

# 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