-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_zshrc.tmpl
More file actions
191 lines (172 loc) · 5.06 KB
/
dot_zshrc.tmpl
File metadata and controls
191 lines (172 loc) · 5.06 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#setup history
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
#add local bin to path
export PATH="${ZDOTDIR:-$HOME}/.local/bin:$PATH"
{{ if eq .chezmoi.os "darwin" -}}
fpath=(/opt/homebrew/share/zsh/site-functions $fpath)
export PATH="/opt/homebrew/opt/python3/libexec/bin:$PATH"
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
export PATH="/opt/homebrew/opt/node/bin:$PATH"
export PATH="/Users/jheidecker/node_modules/.bin:$PATH"
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
export JAVA_HOME="/opt/homebrew/opt/openjdk"
{{ end }}
#load and configure antidote
source ~/.antidote/antidote.zsh
antidote load ${ZDOTDIR:-$HOME}/.zsh_plugins.txt
{{ if eq .chezmoi.os "darwin" -}}
fpath=(${fpath:#/opt/homebrew/share/zsh/site-functions} /opt/homebrew/share/zsh/site-functions)
autoload -Uz compinit && compinit
{{ end }}
#aliases
alias ls='eza --icons -hBba'
alias vi='nvim'
alias vim='nvim'
alias docker='podman'
#queue starship!
eval "$(starship init zsh)"
export KUBE_EDITOR="vim"
#macOS
bindkey '^[[A' fzf_history_search
#linux
bindkey "${key[Up]}" fzf_history_search
#zstylez
# disable sort when completing `git checkout`
zstyle ':completion:*:git-checkout:*' sort false
# set descriptions format to enable group support
zstyle ':completion:*:descriptions' format '[%d]'
# set list-colors to enable filename colorizing
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
# preview directory's content with exa when completing cd
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath'
# switch group using `,` and `.`
zstyle ':fzf-tab:*' switch-group ',' '.'
zstyle ':fzf-tab:*' group-colors $'\033[38;2;179;222;239m' $'\033[38;2;201;208;92m' $'\033[38;2;255;194;75m' $'\033[38;2;115;206;244m' $'\033[38;2;211;185'
zstyle ':fzf-tab:*' fzf-flags --ansi \
--color='fg:#eeeeee,fg+:#eeeeee,bg+:#323232,hl:#73cef4,hl+:#73cef4' \
--color='info:#666666,prompt:#c9d05c,pointer:#f43753,marker:#ffc24b,spinner:#d3b987,header:#b3deef,border:#444444'
#update nvim-lazy plugins (slow)
#nvim --headless '+Lazy! sync' +qa
{{ if eq .chezmoi.os "linux" -}}
fpath=(/usr/share/zsh/site-functions $fpath)
{{ if eq .chezmoi.osRelease.id "debian" -}}
#wezterm fix for debian12
export XCURSOR_THEME=Adwaita
{{- end -}}
{{- end -}}
export ZSH_FZF_HISTORY_SEARCH_END_OF_LINE=1
source $HOME/.cargo/env
export LS_COLORS="\
di=38;2;179;222;239:\
ln=38;2;115;206;244:\
so=38;2;211;185;135:\
pi=38;2;255;194;75:\
ex=38;2;201;208;92:\
bd=38;2;255;194;75;48;2;40;40;40:\
cd=38;2;255;194;75;48;2;50;50;50:\
su=38;2;238;238;238;48;2;244;55;83:\
sg=38;2;238;238;238;48;2;244;55;83:\
tw=38;2;40;40;40;48;2;201;208;92:\
ow=38;2;179;222;239;48;2;50;50;50:\
st=38;2;238;238;238;48;2;115;206;244:\
or=38;2;244;55;83;01:\
mi=38;2;244;55;83;01:\
*.tar=38;2;244;55;83:\
*.tgz=38;2;244;55;83:\
*.zip=38;2;244;55;83:\
*.gz=38;2;244;55;83:\
*.bz2=38;2;244;55;83:\
*.xz=38;2;244;55;83:\
*.zst=38;2;244;55;83:\
*.7z=38;2;244;55;83:\
*.rar=38;2;244;55;83:\
*.deb=38;2;244;55;83:\
*.rpm=38;2;244;55;83:\
*.dmg=38;2;244;55;83:\
*.iso=38;2;244;55;83:\
*.jpg=38;2;211;185;135:\
*.jpeg=38;2;211;185;135:\
*.png=38;2;211;185;135:\
*.gif=38;2;211;185;135:\
*.bmp=38;2;211;185;135:\
*.svg=38;2;211;185;135:\
*.webp=38;2;211;185;135:\
*.ico=38;2;211;185;135:\
*.tif=38;2;211;185;135:\
*.tiff=38;2;211;185;135:\
*.heic=38;2;211;185;135:\
*.avif=38;2;211;185;135:\
*.mp3=38;2;115;206;244:\
*.flac=38;2;115;206;244:\
*.ogg=38;2;115;206;244:\
*.wav=38;2;115;206;244:\
*.aac=38;2;115;206;244:\
*.m4a=38;2;115;206;244:\
*.opus=38;2;115;206;244:\
*.mp4=38;2;211;185;135:\
*.mkv=38;2;211;185;135:\
*.avi=38;2;211;185;135:\
*.mov=38;2;211;185;135:\
*.webm=38;2;211;185;135:\
*.flv=38;2;211;185;135:\
*.wmv=38;2;211;185;135:\
*.pdf=38;2;244;55;83:\
*.doc=38;2;179;222;239:\
*.docx=38;2;179;222;239:\
*.xls=38;2;201;208;92:\
*.xlsx=38;2;201;208;92:\
*.csv=38;2;201;208;92:\
*.ppt=38;2;255;194;75:\
*.pptx=38;2;255;194;75:\
*.md=38;2;255;194;75:\
*.rst=38;2;255;194;75:\
*.txt=38;2;238;238;238:\
*.log=38;2;102;102;102:\
*.bak=38;2;102;102;102:\
*.swp=38;2;102;102;102:\
*.tmp=38;2;102;102;102:\
*.old=38;2;102;102;102:\
*.orig=38;2;102;102;102:\
*.lock=38;2;102;102;102:\
*.py=38;2;201;208;92:\
*.js=38;2;255;194;75:\
*.ts=38;2;115;206;244:\
*.jsx=38;2;115;206;244:\
*.tsx=38;2;115;206;244:\
*.rs=38;2;244;55;83:\
*.go=38;2;115;206;244:\
*.rb=38;2;244;55;83:\
*.php=38;2;211;185;135:\
*.java=38;2;244;55;83:\
*.c=38;2;179;222;239:\
*.cpp=38;2;179;222;239:\
*.h=38;2;179;222;239:\
*.sh=38;2;201;208;92:\
*.zsh=38;2;201;208;92:\
*.bash=38;2;201;208;92:\
*.fish=38;2;201;208;92:\
*.vim=38;2;201;208;92:\
*.lua=38;2;115;206;244:\
*.sql=38;2;255;194;75:\
*.json=38;2;255;194;75:\
*.yaml=38;2;255;194;75:\
*.yml=38;2;255;194;75:\
*.toml=38;2;255;194;75:\
*.xml=38;2;179;222;239:\
*.html=38;2;244;55;83:\
*.css=38;2;115;206;244:\
*.scss=38;2;115;206;244:\
*.less=38;2;115;206;244:\
*.conf=38;2;159;170;0:\
*.cfg=38;2;159;170;0:\
*.ini=38;2;159;170;0:\
*.env=38;2;159;170;0:\
*.gitignore=38;2;102;102;102:\
*.dockerignore=38;2;102;102;102:\
*.Dockerfile=38;2;115;206;244:\
*.Makefile=38;2;159;170;0:\
"
# set list-colors to enable filename colorizing
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}