~/.zprezto/runcoms/zpreztorc
This is my configuration file for Prezto, a MIT-licensed configuration framework for Zsh, which adds a multitude of extra features (additional aliases, functions, themes, and more).
If you are interested, my configuration file is available for download as well.
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# vim: set et fenc=utf-8 ft=conf sts=4 sw=4 ts=8 tw=80 :
#
# Author: microfracture / https://linuxious.com
# Updated: 2015-06-18
# =============================================================================
# Initial setup
# =============================================================================
# Enable colors.
zstyle ':prezto:*:*' color 'yes'
# Activate my desired modules. (The order matters.)
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
'history' \
'directory' \
'spectrum' \
'utility' \
'completion' \
'archive' \
'pacman' \
'fasd' \
'syntax-highlighting' \
'history-substring-search' \
'prompt'
# =============================================================================
# Module Configuration
# =============================================================================
# Enable coloring history substring searches.
zstyle ':prezto:module:history-substring-search:color' found ''
zstyle ':prezto:module:history-substring-search:color' not-found ''
zstyle ':prezto:module:history-substring-search' globbing-flags ''
# Set the keymapping to vi.
zstyle ':prezto:module:editor' key-bindings 'vi'
# Auto convert .... to ../..
zstyle ':prezto:module:editor' dot-expansion 'yes'
# Set the prompt theme.
zstyle ':prezto:module:prompt' theme 'microfracture'
# Set the enabled syntax highlighters.
zstyle ':prezto:module:syntax-highlighting' highlighters \
'main' \
'brackets' \
'pattern' \
'cursor' \
'root'
# Set the syntax highlight styles.
if [[ "$(tput colors)" == "256" ]]; then
zstyle ':prezto:module:syntax-highlighting' styles \
'alias' 'fg=26' \
'builtin' 'fg=26' \
'command' 'fg=26' \
'commandseparator' 'fg=45' \
'default' 'fg=45' \
'double-hyphen-option' 'fg=39' \
'double-quoted-argument' 'fg=45' \
'function' 'fg=26' \
'globbing' 'fg=39,bold' \
'hashed-command' 'fg=26' \
'history-expansion' 'fg=39' \
'path' 'fg=39' \
'precommand' 'fg=36' \
'reserved-word' 'fg=36' \
'single-hyphen-option' 'fg=39' \
'single-quoted-argument' 'fg=45'
fi
# Set the preferred Pacman frontend.
zstyle ':prezto:module:pacman' frontend 'pacaur'
# Enable setting tab and window titles.
zstyle ':prezto:module:terminal' auto-title 'yes'
zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
zstyle ':prezto:module:terminal:tab-title' format '%m: %s'