-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zprofile
388 lines (366 loc) · 9.35 KB
/
.zprofile
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
#!/bin/zsh
export USER="bluetooth"
export HOME="/Users/$USER"
export SHELL="zsh"
export ZSH="${PREFIX}/bin/${SHELL}"
export EDITOR="vim"
export VISUAL="vim"
export READER="zathura"
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s" LESS_ADVANCED_PREPROCESSOR=1
export PAGER="less"
export TERMINAL="alacritty"
export MANPAGER="less"
export BROWSER="firefox"
export OPENER="open"
export COLORTERM="truecolor"
# xdg home dirs
export PODCAST="$HOME/podcasts"
export GISTY_DIR="$HOME/documents/promnesia/gist"
export XDG_DESKTOP_DIR="$HOME/desktop"
export XDG_DOWNLOAD_DIR="$HOME/downloads"
export XDG_PUBLICSHARE_DIR="$HOME/public"
export XDG_DOCUMENTS_DIR="$HOME/documents"
export XDG_MUSIC_DIR="$HOME/music"
export XDG_PICTURES_DIR="$HOME/pictures"
export XDG_VIDEOS_DIR="$HOME/videos"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
# declutter home
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME}/notmuch-config"
export ZETTEL_DIR="${XDG_DATA_HOME}/zet"
export ZET_DIR="${HOME}/repos/git.sr.ht/~gpanders/wiki"
export NIMBLE_DIR="${XDG_DATA_HOME}/nimble"
export PERLBREW_ROOT="${XDG_DATA_HOME}/perlbrew"
export PERLBREW_BIN="${PERLBREW_ROOT}/bin"
export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/password-store"
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
export CARGOBIN="${CARGO_HOME}/bin"
export GOPATH="${XDG_DATA_HOME}/go"
export GOBIN="${GOPATH}/bin"
export NPM_DIR="${XDG_DATA_HOME}/npm"
export NPM_BIN="${NPM_DIR}/bin"
export WEECHAT_HOME="${XDG_DATA_HOME}/weechat"
export HISTFILE="${XDG_DATA_HOME}/history"
export PYTHONHISTFILE="${XDG_DATA_HOME}/python_history"
export TTRV_URLVIEWER="urlscan"
export TTRV_BROWSER="${BROWSER}"
export TTRV_EDITOR="${mvim}"
export SURFRAW_CONF="${XDG_CONFIG_HOME}/surfraw/conf"
export ZEIT_DB="${XDG_DATA_HOME}/zeit/zeit.db"
export RFC_DIR="${XDG_CACHE_HOME}/rfc"
export VDIRSYNCER_CONFIG="${XDG_CONFIG_HOME}/vdirsyncer/config"
export MATES_DIR="${XDG_CACHE_HOME}/contacts"
export WAKATIME_HOME="${XDG_CONFIG_HOME}/waka"
export SUBS_FILE="${XDG_DATA_HOME}/subs/subs.txt"
export RRC_CONFIG="${XDG_CONFIG_HOME}/rrc/config.toml"
export MOOD_DIR="${XDG_DATA_HOME}/mood"
export MY_CONFIG="${XDG_CONFIG_HOME}/my"
export HSTR_CONFIG="hicolor,prompt-bottom,keywords-matching,help-on-opposite-side"
export FIREFOX_DATA="${HOME}/Library/ApplicationSupport/firefox/profiles/thz5mssg.dev-edition-default"
# program defaults
export PASSWORD_STORE_ENABLE_EXTENSIONS=true
export PASSWORD_STORE_EXTENSIONS_DIR=/usr/local/lib/password-store/extensions
export PASSWORD_STORE_CLIP_TIME=120
export PASH_LENGTH=19
export PASH_PATTERN="_A-Z-a-z-0-9"
export PASH_DIR="${XDG_DATA_HOME}/pash"
export PASH_CLIP="pbcopy"
export PASH_TIMEOUT=off
export PASH_KEYID="E912D56014735E825B5245B1B01FD9091D237004"
export FZF_DEFAULT_COMMAND="fd -t f -H -i -L"
export FORGIT_COPY_CMD='pbcopy'
export FORGIT_FZF_DEFAULT_OPTS="${FZF_DEFAULT_OPTS}"
export FORGIT_CMD_FZF_OPTS=""
export FORGIT_LOG_FZF_OPTS='
--bind="ctrl-e:execute(echo {} |grep -Eo [a-f0-9]+ |head -1 |xargs git show |vim -)"
'
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden:wrap --bind '?:toggle-preview'"
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || bat {} || tree -C {}) 2> /dev/null | head -150'"
export FZF_ALT_C_OPTS="--preview 'glow {}'"
export SUBS_MENU_PROG="fzf --height=95% --cycle --border=rounded --preview-window=hidden"
export FZF_MENU_PROG="fzf --height=95% --cycle --border=rounded --preview-window=hidden
"
export FZF_DEFAULT_OPTS="--layout=reverse --height 65%"
export ZSH_PECO_HISTORY_OPTS="--layout=bottom-up"
export ZSH_PECO_HISTORY_DEDUP="1"
export LESS="-R"
export EDIT="open -a MacVim"
export JUSTFILE_DIR="${XDG_DATA_HOME}/justfiles"
export JUSTFILE_FZF_DEFAULT_OPTS="${FZF_DEFAULT_OPTS}"
export JUSTFILE_EDITOR="${EDITOR:-mvim}"
export YTFZF_HIST=1
export YTFZF_LOOP=0
export YTFZF_PREF="bestvideo[height<=?1080]+bestaudio/best"
export YTFZF_CACHE="${HOME}/.cache/ytfzf"
export DOTBARE_BACKUP="${XDG_DATA_HOME}/dotbare"
export DOTBARE_PREVIEW="bat {}"
export DOTBARE_FZF_DEFAULT_OPTS="--preview-window=right:65%"
export DOTBARE_KEY="
--bind=alt-a:toggle-all # toggle all selection
--bind=alt-j:jump # label jump mode, sort of like vim-easymotion
--bind=alt-0:top # set cursor back to top
--bind=alt-s:toggle-sort # toggle sorting
--bind=alt-t:toggle-preview # toggle preview
"
# buku
export BUKUSERVER_PER_PAGE=100
export BUKUSERVER_DB_FILE="${XDG_DATA_HOME}/buku/bookmarks.db"
export BUKUSERVER_OPEN_IN_NEW_TAB=true
# path settings
export MAILCAPS="${XDG_CONFIG_HOME}/mailcap"
typeset -U path
path=(
/usr/local/opt/coreutils/libexec/gnubin
/usr/local/opt/gnu-sed/libexec/gnubin
/usr/local/opt/grep/libexec/gnubin
~/.bin
~/bin
~/.local/bin
/usr/local/bin
~/Library/Python/3.9/bin
/usr/local/opt/binutils/bin
/usr/local/opt/ruby/bin
/usr/local/lib/ruby/gems/3.0.0/bin
/usr/local/lib/ruby/gems/2.7.0/bin
/usr/bin
/usr/sbin
/sbin
/usr/libexec
/bin
$GOBIN
$CARGOBIN
$NIMBLE_DIR/bin
~/.local/share/npm/bin
~/.local/share/kyrat/bin
/opt/X11/bin
/usr/local/opt/fzf/bin
/usr/local/opt/openjdk/bin
/Applications/Firefox.app/Contents/MacOS
/Applications/mindforger.app/Contents/MacOS
/usr/local/opt/curl/bin
$XDG_DATA_HOME/flutter/bin
$XDG_DATA_HOME/mangadl
/usr/local/opt/[email protected]/bin
/usr/local/Cellar/perl/5.32.1/bin
)
typeset -u fpath
fpath=(
~/.zsh.d/comp
~/.zsh.d/comp/macos
/usr/local/Cellar/zsh/5.9/share/zsh/functions
/usr/local/Cellar/zsh-completions/0.34.0/share/zsh-completions
/usr/share/zsh/5.8.1/functions
)
typeset -u manpath
manpath=(
/usr/local/share/man
/usr/local/Cellar/zsh/5.9/share/man
/usr/local/Cellar/zsh/5.9/share/zsh/help
/opt/X11/share/man
/usr/share/man
~/.local/share/npm/share/man
/usr/local/opt/ghi/share/man
/usr/local/opt/gist/share/man
/usr/local/opt/help2man/share/man/man1
/usr/local/opt/irssi/share/man
/usr/local/opt/gh/share/man
/usr/local/opt/feh/share/man
/usr/local/opt/entr/share/man
/usr/local/opt/exif/share/man
/usr/local/fdupes/share/man
/usr/local/opt/coreutils/share/man
/usr/local/opt/cowsay/share/man
~/.local/share/man
/usr/local/opt/[email protected]/share/man
)
typeset -u pkg_config_path
pkg_config_path=(
~/.local/lib/pkgconfig
/usr/local/opt/openal-soft/lib/pkgconfig
/usr/local/lib/pkgconfig
/usr/local/Cellar/libtoxcore/HEAD-470fa79/lib/pkgconfig
/usr/local/opt/curl/lib/pkgconfig
)
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
export LESS_TERMCAP_so="$(printf '%b' '[01;44;33m')"
export LESS_TERMCAP_se="$(printf '%b' '[0m')"
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
# Input prompt of fuzzy searcher
export FONTPREVIEW_SEARCH_PROMPT=">> "
# Size of the font preview window
export FONTPREVIEW_SIZE=532x365
# The position where the font preview window should be displayed
export FONTPREVIEW_POSITION="+0+0"
# Font size
export FONTPREVIEW_FONT_SIZE=38
# Background color of the font preview window
export FONTPREVIEW_BG_COLOR="#ffffff"
# Foreground color of the font preview window
export FONTPREVIEW_FG_COLOR="#000000"
# Preview text that should be displayed in the font preview window
export FONTPREVIEW_PREVIEW_TEXT="ABCDEFGHIJKLM\nNOPQRSTUVWXYZ\nabcdefghijklm\nnopqrstuvwxyz\n1234567890\n!@$\%(){}[]"
export LF_ICONS="\
di=:\
fi=:\
ln=:\
or=:\
ex=:\
*.vimrc=:\
*.viminfo=:\
*.gitignore=:\
*.c=:\
*.cc=:\
*.clj=:\
*.coffee=:\
*.cpp=:\
*.css=:\
*.d=:\
*.dart=:\
*.erl=:\
*.exs=:\
*.fs=:\
*.go=:\
*.h=:\
*.hh=:\
*.hpp=:\
*.hs=:\
*.html=:\
*.java=:\
*.jl=:\
*.js=:\
*.json=:\
*.lua=:\
*.md=:\
*.php=:\
*.pl=:\
*.pro=:\
*.py=:\
*.rb=:\
*.rs=:\
*.scala=:\
*.ts=:\
*.vim=:\
*.cmd=:\
*.ps1=:\
*.sh=:\
*.bash=:\
*.zsh=:\
*.fish=:\
*.tar=:\
*.tgz=:\
*.arc=:\
*.arj=:\
*.taz=:\
*.lha=:\
*.lz4=:\
*.lzh=:\
*.lzma=:\
*.tlz=:\
*.txz=:\
*.tzo=:\
*.t7z=:\
*.zip=:\
*.z=:\
*.dz=:\
*.gz=:\
*.lrz=:\
*.lz=:\
*.lzo=:\
*.xz=:\
*.zst=:\
*.tzst=:\
*.bz2=:\
*.bz=:\
*.tbz=:\
*.tbz2=:\
*.tz=:\
*.deb=:\
*.rpm=:\
*.jar=:\
*.war=:\
*.ear=:\
*.sar=:\
*.rar=:\
*.alz=:\
*.ace=:\
*.zoo=:\
*.cpio=:\
*.7z=:\
*.rz=:\
*.cab=:\
*.wim=:\
*.swm=:\
*.dwm=:\
*.esd=:\
*.jpg=:\
*.jpeg=:\
*.mjpg=:\
*.mjpeg=:\
*.gif=:\
*.bmp=:\
*.pbm=:\
*.pgm=:\
*.ppm=:\
*.tga=:\
*.xbm=:\
*.xpm=:\
*.tif=:\
*.tiff=:\
*.png=:\
*.svg=:\
*.svgz=:\
*.mng=:\
*.pcx=:\
*.mov=:\
*.mpg=:\
*.mpeg=:\
*.m2v=:\
*.mkv=:\
*.webm=:\
*.ogm=:\
*.mp4=:\
*.m4v=:\
*.mp4v=:\
*.vob=:\
*.qt=:\
*.nuv=:\
*.wmv=:\
*.asf=:\
*.rm=:\
*.rmvb=:\
*.flc=:\
*.avi=:\
*.fli=:\
*.flv=:\
*.gl=:\
*.dl=:\
*.xcf=:\
*.xwd=:\
*.yuv=:\
*.cgm=:\
*.emf=:\
*.ogv=:\
*.ogx=:\
*.aac=:\
*.au=:\
*.flac=:\
*.m4a=:\
*.mid=:\
*.midi=:\
*.mka=:\
*.mp3=:\
*.mpc=:\
*.ogg=:\
*.ra=:\
*.wav=:\
*.oga=:\
*.opus=:\
*.spx=:\
*.xspf=:\
*.pdf=:\
*.nix=:\
"