-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_zpreztorc
More file actions
122 lines (103 loc) · 3.42 KB
/
dot_zpreztorc
File metadata and controls
122 lines (103 loc) · 3.42 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
## General ZSH
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:kill:*' force-list always
zstyle ':completion:*:cd:*' ignore-parents parent pwd
## Prezto
# Set the Prezto modules to load (browse modules).
# Order matters.
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
'history' \
'directory' \
'spectrum' \
'utility' \
'completion' \
'history-substring-search' \
'autoenv' \
'ssh' \
'docker' \
'kubectl' \
'rojo-kubectl' \
'kube-ps1' \
'zsh-notify' \
'homebrew' \
'osx' \
'rojo-git' \
'archive' \
'syntax-highlighting' \
'autosuggestions' \
'zsh-aws-vault' \
'prompt' \
'rojo-tmux'
# Disabled
# 'zsh-autocomplete' \
## PROMPT SETUP
autoload -Uz promptinit
promptinit
fpath=($HOME/.zprezto/contrib/rojo-prompt $fpath) # The contrib folder is not in the fpath and the prompt module only loads functions in the fpath
zstyle ':prezto:module:prompt' theme 'rojo'
source $HOME/.zprezto/contrib/gcloud-ps1/gcloud-ps1.sh
# Prezto Modules
zstyle ':prezto:*:*' color 'yes' # Color output (auto set to 'no' on dumb terminals).
zstyle ':prezto:module:ssh:load' identities 'id_rsa'
# zstyle ':prezto:load' zmodule 'attr' 'stat'
# zstyle ':prezto:load' zfunction 'zargs' 'zmv'
# Completions
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
zstyle ':completion:*:default' list-colors '' # Directories
zstyle ':completion:*' completer _complete _match _approximate
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
zstyle ':completion:*:functions' ignored-patterns '_*'
zstyle ':completion:*:cd:*' ignore-parents parent pd
## Syntax Highlighting
zstyle ':prezto:module:syntax-highlighting' color 'yes'
# Set syntax highlighters.
# By default, only the main highlighter is enabled.
zstyle ':prezto:module:syntax-highlighting' highlighters \
'main' \
'brackets' \
'pattern' \
'cursor' \
'root' \
'line' \
'main'
# Set syntax highlighting styles.
zstyle ':prezto:module:syntax-highlighting' styles \
'builtin' 'fg=green' \
'command' 'fg=green' \
'function' 'fg=green'
# Autosuggestion
#zstyle ':prezto:module:autosuggestions' color 'yes'
#zstyle ':prezto:module:autosuggestions:color' found 'green'
## Terminal
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'
## Editor
zstyle ':prezto:module:editor' key-bindings 'vi'
zstyle ':prezto:module:editor' dot-expansion 'yes'
## Tmux
zstyle ':prezto:module:tmux:auto-start' local 'no'
zstyle ':prezto:module:tmux:auto-start' remote 'no'
zstyle ':prezto:module:tmux:iterm' integrate 'yes'
zstyle ':prezto:module:tmux:session' name 'main'
# Set the query found color.
zstyle ':prezto:module:history-substring-search:color' found 'green'
# Set the query not found color.
zstyle ':prezto:module:history-substring-search:color' not-found 'grey'
# Set the search globbing flags.
#zstyle ':prezto:module:history-substring-search' globbing-flags ''
# Utility
zstyle ':prezto:module:utility' safe-ops 'no'
setopt rm_star_silent
zstyle ':prezto:module:utility:diff' color 'yes'
zstyle ':prezto:module:utility:wdiff' color 'yes'
zstyle ':prezto:module:utility:make' color 'yes'
# zsh-autocompletions
# zstyle ':autocomplete:*' default-context ''
# zstyle ':autocomplete:*' min-input 1 # int
zstyle ':autocomplete:*' recent-dirs autojump