-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_zshrc.zinit
878 lines (765 loc) · 20.7 KB
/
dot_zshrc.zinit
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
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
# shellcheck disable=SC2148
#
# Executes commands at the start of an interactive session
#
# zmodload zsh/zprof
if [ -z "$PS1" ] ; then
# If not running interactively, don't do anything
return
fi
source() {
if [[ ! "${1}.zwc" -nt "${1}" ]]; then
zcompile "${1}" 2>/dev/null
fi
builtin source "$1"
}
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc
# shellcheck disable=SC2296
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
# shellcheck disable=SC2296
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
### Added by Zinit's installer
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && \
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"
### End of Zinit's installer chunk
zi_ice() { zinit ice lucid silent "$@"; }
zi0a() { zi_ice wait'0' "$@"; }
zi0b() { zi_ice wait'1' "$@"; }
zi0c() { zi_ice wait'2' "$@"; }
# Use default installed in the Linux distribution. This version has bugs
# zinit pack="default" for zsh
zi_ice id-as'zsh-defer' \
depth=1
zinit light romkatv/zsh-defer
#
# Powerlevel10k
#
# Must be run just after zinit
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh
zi_ice id-as'p10k' \
depth=1 \
src"${HOME}/.p10k.zsh"
zinit light romkatv/powerlevel10k
#
# vi-mode
#
ZVM_VI_SURROUND_BINDKEY=s-prefix
ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT
zi0a id-as'zsh-vi-mode' \
depth=1
zinit light jeffreytse/zsh-vi-mode
# zsh-vi-mode will auto execute this zvm_after_init function
zvm_after_init() {
# required to read custom key-bindings, otherwise they will be overwritten by
# zsh-vi-mode
source /usr/share/fzf/key-bindings.zsh
source "${HOME}"/.zsh/key-bindings
export ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
source "${ZINIT[PLUGINS_DIR]}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
ZSH_HIGHLIGHT_STYLES[comment]='none'
source "${ZINIT[PLUGINS_DIR]}/zsh-history-substring-search/zsh-history-substring-search.zsh"
source "${ZINIT[PLUGINS_DIR]}/zsh_codex/zsh_codex.plugin.zsh"
source "${ZINIT[PLUGINS_DIR]}/zsh-autopair/autopair.zsh"
zsh-defer unfunction source
}
if command -v keychain >/dev/null 2>&1 && [[ -f "$HOME/.ssh/id_rsa" ]]; then
zsh-defer eval "$(keychain --eval --quiet --agents ssh id_rsa)"
fi
# atuin
if (command -v atuin >/dev/null 2>&1); then
export ATUIN_NOBIND="true"
zsh-defer eval "$(atuin init zsh --disable-up-arrow --disable-ctrl-r)"
fi
zi0b id-as'zsh-autosuggestions' \
cloneopts="--branch develop" \
depth=1
zinit light zsh-users/zsh-autosuggestions
# zsh-syntax-highlighting is quicker than fast-syntax-highlighting
export ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
zi0b id-as'zsh-syntax-highlighting' \
depth=1 \
cloneonly \
atpull'%atclone' \
nocd
zinit light zsh-users/zsh-syntax-highlighting
# Must loaded after zsh-syntax-highlighting
zi0b id-as'zsh-history-substring-search' \
depth=1 \
cloneonly \
atpull'%atclone' \
nocd
zinit light zsh-users/zsh-history-substring-search
# ignore expansion of these regular/global aliases
export ZPWR_EXPAND_BLACKLIST=(rm mv cp ln mkdir ls l type ji)
export ZPWR_EXPAND_TO_HISTORY=true
zi0c id-as'zsh-expand' \
depth=1 \
src"${HOME}/.zsh/zsh-aliases"
zinit light MenkeTechnologies/zsh-expand
# Quicker doing manual initialization
zi0b id-as'zsh-autopair' \
depth=1 \
atinit'AUTOPAIR_INHIBIT_INIT=1' \
atload'autopair-init'
zinit light hlissner/zsh-autopair
zi0c id-as'zsh-bd' \
depth=1 \
src"${ZINIT[PLUGINS_DIR]}/zsh-bd/bd.zsh"
zinit light tarrasch/zsh-bd
zi0c id-as'fzf-tab' \
depth=1
zinit light Aloxaf/fzf-tab
zi0c id-as'cht.sh' \
as'command' \
has'rlwrap' \
pick'cht.sh' \
atload'export CHTSH="$XDG_CONFIG_HOME"'
zinit snippet https://cht.sh/:cht.sh
zi0c id-as'forgit' \
depth=1 \
cloneonly \
atpull'%atclone' \
nocd
zinit light wfxr/forgit
# forgit
export FORGIT_NO_ALIASES=1
source "${ZINIT[PLUGINS_DIR]}/forgit/forgit.plugin.sh"
zi0c id-as'git-undo' \
as'program' \
pick'git-undo'
zinit snippet https://raw.githubusercontent.com/tj/git-extras/master/bin/git-undo
zi0c id-as'zsh_codex' \
depth=1 \
cloneonly \
atpull'%atclone' \
nocd
zinit light tom-doerr/zsh_codex
#
# prezto settings
#
# Set before loading prezto
zstyle ':prezto:*:*' case-sensitive 'yes'
zstyle ':prezto:*:*' color 'yes'
zstyle ':prezto:module:history:alias' skip 'yes'
zi_ice
zinit snippet PZTM::environment
zi_ice
zinit snippet PZTM::history
zi_ice
zinit snippet OMZP::extract
#
# Put most source here to improve zsh load speed
#
# extensions dotfiles
for file in "${HOME}"/.zsh/*.zsh; do
source "${file}"
done
unset file
zsh-defer source "${HOME}/.zsh/kitty"
zsh-defer unset z_ice
zsh-defer unset zi0a
zsh-defer unset zi0b
zsh-defer unset zi0c
######################################################################
# Keep old configurations for future uses
######################################################################
# Alternative to fzf-tab, but less friendly
# zi_ice id-as'fzf-tab-completion' \
# pick'zsh/fzf-zsh-completion.sh'
# zinit light "lincheney/fzf-tab-completion"
# zi0c id-as'zoxide' \
# from'gh-r' \
# as'program' \
# bpick'*x86_64*linux*' \
# mv'zoxide*/zoxide -> zoxide' \
# pick'zoxide' \
# atload'eval "$(zoxide init zsh --cmd j)";'
# zinit light ajeetdsouza/zoxide
# TODO: problem with zsh-autosuggestions
# zstyle ':autocomplete:key-bindings' enabled no
# zi_ice id-as'zsh-autocomplete'
# zinit light marlonrichert/zsh-autocomplete
# if [ ! -f /etc/arch-release ] || [ ! -f /etc/manjaro-release ]; then
# There is a bug on zinit
# zinit id-as'git' \
# dlink"/git/git/archive/refs/tags/v%VERSION%.zip" \
# as'readurl|null' \
# atclone"ziextract --move --auto; \
# make prefix=$ZPFX USE_LIBPCRE2=1 INSTALL_SYMLINKS=1 \
# -j$(nproc) all man install install-man &&
# rm -vf $ZPFX/bin/git-shell;
# rm -vf $ZPFX/bin/git-cvsserver;
# rm -vf $ZPFX/bin/gitk;" \
# atpull'%atclone' \
# for https://github.com/git/git/tags/
# look for 70-asdf.zsh configuration file
# zi0a id-as'asdf' \
# atinit'export ASDF_DATA_DIR="$HOME/.asdf"; \
# export ASDF_CONFIG_FILE="$ASDF_DATA_DIR/.asdfrc";'
# zinit light asdf-vm/asdf
# source "${ZINIT[PLUGINS_DIR]}/asdf/asdf.sh"
#
# zi0c id-as'topgrade' \
# from'gh-r' \
# as'program' \
# bpick'*x86_64-unknown-linux-musl*' \
# pick'topgrade'
# zinit light r-darwish/topgrade
#
# zi0c id-as'less' \
# ver'v602' \
# as'program' \
# atclone'make -f Makefile.aut && autoreconf --install &&
# ./configure --with-regex=gnu --with-editor=nvim' \
# atpull"%atclone" \
# make"-j$(nproc)" \
# pick'less'
# zinit light gwsw/less
#
# zi0c id-as'ov' \
# from'gh-r' \
# as'program' \
# bpick'*linux_amd64*' \
# pick'ov'
# zinit light noborus/ov
#
# zi0c id-as'clangd' \
# from'gh-r' \
# as'program' \
# bpick'clangd-linux*' \
# mv'clangd*/bin/clangd -> clangd'
# zinit light clangd/clangd
#
# zinit id-as'git-interactive-rebase-tool' \
# as'readurl|null' \
# dlink"/MitMaro/git-interactive-rebase-tool/releases/download/%VERSION%/git-interactive-rebase-tool-%VERSION%-ubuntu-16.04_amd64.deb" \
# atclone"ziextract --move --auto; \
# dpkg -x git-interactive-rebase-tool .; \
# mv -vf usr/bin/interactive-rebase-tool $ZPFX/bin;" \
# atpull'%atclone' \
# for https://github.com/MitMaro/git-interactive-rebase-tool/releases
#
# zi0c id-as'tmux' \
# as"program" \
# ver"3.3a" \
# atclone"./autogen.sh && ./configure && make -j$(nproc)" \
# mv"tmux -> /ws/${USER}/shell-goodies/repos/dotfiles/exact_bin/tmux"
# zinit light tmux/tmux
#
# zi0c id-as'chezmoi' \
# as'program' \
# from'gh-r' \
# cp'completions/chezmoi.zsh -> _chezmoi'
# zinit light twpayne/chezmoi
#
# JS Node modules
#
# zi0c id-as'node-modules' \
# node'bash-language-server' \
# sbin'node_modules/.bin/bash-language-server'
# zinit light zdharma-continuum/null
# Put here all rust installations
# looks the mv ice doesn't work with rustup cargo
# zinit id-as'keychain' \
# dlink"/funtoo/keychain/archive/refs/tags/%VERSION%.zip" \
# as'readurl|null' \
# atclone"ziextract --move --auto; \
# install -m755 keychain $ZPFX/bin/" \
# atpull'%atclone' \
# for https://github.com/funtoo/keychain/releases
# fi
#
# system clipboard
#
# ZSH_SYSTEM_CLIPBOARD_METHOD=tmux
# zi_ice id-as'zsh-system-clipboard' \
# depth=1
# zinit light kutsan/zsh-system-clipboard
# Help to remember alias
# zi0a id-as'zsh-you-should-use'
# zinit light MichaelAquilina/zsh-you-should-use
# Too slow. Seems has conflict with other plugins
# It brings back live history, even when it's disabled
# zi0a id-as'zsh-autocomplete' \
# atinit"zstyle ':autocomplete:*' min-delay 0.4; \
# zstyle ':autocomplete:*' min-input 2; \
# zstyle ':autocomplete:*' fzf-completion yes; \
# zstyle ':autocomplete:*' recent-dirs no"
# zinit light marlonrichert/zsh-autocomplete
# Forgot to use it
# zi0a id-as'zsh-thefuck'
# zinit light laggardkernel/zsh-thefuck
#
# Navigation/completion
#
# use `cat -v` to define the map
# Replace by fzf. Conflict with Ctrl-R
# zi0b id-as'history-search-multi-word'
# zinit light zdharma-continuum/history-search-multi-word
# replaced by tmux-fingers
# zi0c id-as'fpp' \
# from"gh" \
# as"program" \
# atinit"sed -i 's/python3/python3.7/g' fpp" \
# pick"fpp"
# zinit light facebook/pathpicker
# zi0c id-as'navi' \
# from'gh-r' \
# as'program' \
# pick'navi' \
# atload'eval "$(navi widget zsh)";'
# zinit light denisidoro/navi
#
# CLI Highlight & Colors
#
# zi0a id-as'fast-syntax-highlighting'
# zinit light zdharma-continuum/fast-syntax-highlighting
#
# Diff
#
# zi0c id-as'delta' \
# from'gh-r' \
# as'program' \
# bpick'*x86_64-unknown-linux-musl*' \
# mv'delta*/delta -> delta' \
# pick'delta'
# zinit light dandavison/delta
#
# Cheatsheet
#
# zi0c id-as'tldr' \
# from'gh-r' \
# as'program' \
# bpick'*linux-x86_64-musl*' \
# mv'tldr-* -> tldr' \
# pick'tldr'
# zinit light dbrgn/tealdeer
#
# Shell scripting
#
# Installed by Neovim
# zinit ice rustup id-as'shellharden' \
# as'program' \
# cargo'!shellharden'
# zinit light zdharma-continuum/null
#
# Installed by Neovim
# zi0c id-as'shellcheck' \
# from'gh-r' \
# as'program' \
# bpick'*linux.x86_64*' \
# mv'shellcheck*/shellcheck -> shellcheck' \
# pick'shellcheck'
# zinit light koalaman/shellcheck
#
# Installed by Neovim
# zi0c id-as'shfmt' \
# from'gh-r' \
# as'program' \
# mv'shfmt* -> shfmt'
# zinit light mvdan/sh
#
# File utilities
#
# zi0c id-as'dust' \
# from'gh-r' \
# as'program' \
# bpick'*linux*gnu*' \
# mv'dust*/dust -> dust' \
# pick'dust'
# zinit light bootandy/dust
# shim fails for fd
# zi0b id-as'fd' \
# from'gh-r' \
# as'program' \
# mv'fd*/fd -> fd' \
# pick'fd'
# zinit light sharkdp/fd
# zi0a id-as'exa' \
# from'gh-r' \
# as'program' \
# mv'bin/exa -> exa' \
# pick'exa'
# zinit light ogham/exa
# shim fails for sd
# zi0c id-as'sd' \
# from'gh-r' \
# as'program' \
# mv'sd-* -> sd' \
# pick'sd'
# zinit light chmln/sd
# zi0c id-as'sad' \
# from'gh-r' \
# as'program' \
# bpick'*x86_64-unknown-linux-gnu*' \
# pick'sad'
# zinit light ms-jpq/sad
# zi0c id-as'bat' \
# from'gh-r' \
# as'program' \
# bpick'*x86_64-unknown-linux-musl*' \
# mv'bat*/bat -> bat' \
# pick'bat'
# zinit light sharkdp/bat
# zi0c id-as'duf' \
# from'gh-r' \
# as'program' \
# bpick'*linux_x86_64.tar.gz'
# zinit light muesli/duf
# zi0c id-as'ouch' \
# from'gh-r' \
# as'program' \
# bpick'*x86_64-unknown-linux-gnu*' \
# mv'ouch*/ouch -> ouch' \
# pick'ouch'
# zinit light ouch-org/ouch
# zi0c id-as'erdtree' \
# from'gh-r' \
# as'program' \
# bpick'*x86_64-unknown-linux-gnu*' \
# pick'erdtree'
# zinit light solidiquis/erdtree
# zi0c id-as'codespelunker' \
# from'gh-r' \
# as'program' \
# bpick'*Linux_x86_64*' \
# pick'cs'
# zinit light boyter/cs
# zi0c id-as'moar' \
# as'program' \
# atclone'go get && go build' \
# atpull'%atclone' \
# pick'moar'
# zinit light walles/moar
#
# jq parsing
#
# zi0c id-as'jq' \
# from'gh-r' \
# as'program' \
# bpick'*linux64' \
# mv'jq-* -> jq'
# zinit light stedolan/jq
#
# zi0c id-as'fx' \
# from'gh-r' \
# as'program' \
# mv'fx* -> fx'
# zinit light antonmedv/fx
#
# Monitoring
#
# zi0c id-as'htop' \
# as'program' \
# ver'3.2.0' \
# atclone"./autogen.sh && ./configure --enable-delayacct" \
# atpull"%atclone" \
# make'htop' \
# pick'htop'
# zinit light htop-dev/htop
# required gcc 10
# ver'v1.0.10' \
# zi0c id-as'btop' \
# as'program' \
# atclone"make" \
# make"PREFIX=$ZPFX install"
# zinit light aristocratos/btop
#
# Grepping
#
# zi0c id-as'ripgrep' \
# from'gh-r' \
# as'program' \
# mv'ripgrep*/rg -> rg' \
# pick'rg'
# zinit light BurntSushi/ripgrep
# zi0c id-as'igrep' \
# from'gh-r' \
# as'program' \
# bpick'*x86_64-unknown-linux-gnu*' \
# mv'igrep/ig -> ig' \
# pick'ig'
# zinit light konradsz/igrep
# zi0c id-as'ugrep' \
# as'program' \
# atclone"./build.sh --prefix=$ZPFX" \
# atpull'%atclone' \
# make'install'
# zinit light Genivia/ugrep
#
# Editor
#
#
# neovim-nightlies
#
# zi0c id-as'nvim' \
# atclone"wget https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz; \
# unzip -o nvim-linux64.zip; \
# fd nvim -x rm -vrf {} \; $ZPFX; \
# tar xvf nvim-linux64.tar.gz --strip-components=1 -C $ZPFX; \
# rm -f nvim-linux64.zip" \
# atpull'%atclone'
# zinit light zdharma-continuum/null
# zi0c id-as'glow' \
# from'gh-r' \
# as'program' \
# bpick'*linux_x86_64.tar.gz' \
# pick'glow'
# zinit light charmbracelet/glow
#
# File managers
#
# zi0c id-as'nnn' \
# from'gh-r' \
# as'program' \
# bpick'nnn-static*x86_64*' \
# mv'nnn-static -> nnn' \
# pick'nnn'
# zinit light jarun/nnn
# zi0c id-as'broot' \
# from'gh-r' \
# as'program' \
# pick'build/x86_64-unknown-linux-musl/broot' \
# ver'latest'
# zinit light Canop/broot
# zi0c id-as'ranger' \
# from'gh' \
# as'program' \
# depth'1' \
# pick'ranger.py' \
# atload'alias ranger=ranger.py'
# zinit light ranger/ranger
#
# Build tools
#
# zi0c id-as'ninja' \
# from'gh-r' \
# as'program' \
# bpick'*linux*' \
# pick'ninja'
# zinit light ninja-build/ninja
#
# Language servers
#
# Installed by Neovim
# zi0c id-as'lua-language-server' \
# as'program' \
# atclone"git submodule update --init --recursive; \
# ninja -C 3rd/luamake -f compile/ninja/linux.ninja; \
# ./3rd/luamake/luamake rebuild;" \
# atpull'%atclone'
# zinit light sumneko/lua-language-server
# Installed by Neovim
# zi0c id-as'efm' \
# from'gh-r' \
# as'program' \
# bpick'*linux_amd64*' \
# mv'*/efm-langserver -> efm-langserver' \
# pick"efm-langserver"
# zinit light mattn/efm-langserver
#
# Git utilities
#
# zi0c id-as'git-fuzzy' \
# as'program' \
# pick'bin/git-fuzzy'
# zinit light bigH/git-fuzzy
# zi0c id-as'bugs' \
# as'program' \
# pick'bugs'
# zinit snippet https://raw.githubusercontent.com/reddit/bugs/main/bugs.sh
# It needs higher Ubuntu v16.04
# zi0c id-as'askgit' \
# from'gh-r' \
# as'program' \
# bpick'*linux-amd64*' \
# pick'askgit'
# zinit light askgitdev/askgit
# Use backspace \ before $ for SHELL variable
# zi0c id-as'tabnine' \
# atclone"local VER
# local START_URL
# local END_URL
# VER=\$(curl -sS https://update.tabnine.com/bundles/version); \
# START_URL=https://update.tabnine.com/bundles/; \
# END_URL=/x86_64-unknown-linux-musl/TabNine.zip; \
# wget \$START_URL\$VER\$END_URL; \
# unzip -o TabNine.zip; \
# rm -vf TabNine.zip
# chmod -v +x *Tab*; \
# mv -vf *Tab* /ws/tiamarin/home-cache/local/share/nvim/site/pack/packer/start/coq_nvim/.vars/clients/t9/; \
# unset VER; \
# unset START_URL; \
# unset END_URL" \
# atpull'%atclone'
# zinit light zdharma-continuum/null
# zi0c id-as'git-reauthor' \
# as'program' \
# mv'bin/git-reauthor -> git-reauthor' \
# pick'git-reauthor'
# zinit snippet https://github.com/tj/git-extras/blob/master/bin/git-reauthor
# zi0c id-as'git-squash' \
# as'program' \
# mv'bin/git-squash -> git-squash' \
# pick'git-squash'
# zinit snippet https://github.com/tj/git-extras/blob/master/bin/git-squash
# zi0c id-as'git-reset-file' \
# as'program' \
# mv'bin/git-reset-file -> git-reset-file' \
# pick'git-reset-file'
# zinit snippet https://github.com/tj/git-extras/blob/master/bin/git-reset-file
# zi0c id-as'git-lfs' \
# from'gh-r' \
# as'program' \
# bpick'*linux-amd64*' \
# atclone"PREFIX=$ZPFX ./install.sh; \
# rm -f ./install.sh ./*.md; \
# mv ./man/*.1 $ZPFX/share/man/man1; \
# rm -rf ./man"
# zinit light git-lfs/git-lfs
#
# Parallel processing
#
# zinit id-as'parallel' \
# as'readurl|command' \
# atclone'ziextract --auto --move && ./configure --disable-documentation' \
# atpull'%atclone' \
# make'' \
# pick'src/parallel' \
# dlink'parallel-latest.tar.bz2' \
# for https://ftp.gnu.org/gnu/parallel/
# interactive parallel ssh client
# zi0c id-as'hss' \
# from'gh-r' \
# as'program' \
# mv'hss-Linux-x86_64 -> hss'
# zinit light six-ddc/hss
# zi0c id-as'task-spooler' \
# as'program' \
# ver'cpu-only' \
# make"PREFIX=$ZPFX -j$(nproc) install"
# zinit light justanhduc/task-spooler
# Use cargo
# Installed by Mason Neovim plugin
# zinit ice rustup id-as'stylua' \
# as'program' \
# cargo'!stylua'
# zinit light zdharma-continuum/null
# Installed by Neovim
# zi0c id-as'stylua' \
# from'gh-r' \
# as'program' \
# bpick'*stylua*linux*' \
# pick'stylua'
# zinit light JohnnyMorganz/StyLua
# Installed by Neovim
# zi0c id-as'stylua' \
# from'gh-r' \
# as'program' \
# bpick'*stylua*linux*' \
# pick'stylua'
# zinit light JohnnyMorganz/StyLua
# zi0c id-as'gitui' \
# from'gh-r' \
# as'program' \
# bpick'*linux-musl*' \
# pick'gitui'
# zinit light extrawurst/gitui
# zi0c id-as'direnv' \
# from'gh-r' \
# as'program' \
# pick'direnv' \
# mv'direnv*->direnv' \
# atload'eval "$(direnv hook zsh)"'
# zinit light direnv/direnv
# zi_ice id-as'atuin' \
# from'gh-r' \
# as'program' \
# sbin"**/atuin"
# zinit light ellie/atuin
# zi0c id-as'difftastic' \
# cargo'!difftastic'
# zinit light wilfred/difftastic
# zi0c id-as'zeno' \
# depth"1" \
# blockf
# zinit light yuki-yano/zeno.zsh
# zi0c id-as'grex' \
# from'gh-r' \
# as'program' \
# bpick'*linux-musl*'
# zinit light pemistahl/grex
# zi0c id-as'hyperfine' \
# from'gh-r' \
# as'command' \
# bpick"$PICK" \
# pick'hyperfine/hyperfine' \
# mv'hyperfine* -> hyperfine'
# zinit light sharkdp/hyperfine
# zi0c id-as'lazydoker' \
# from'gh-r' \
# as'program' \
# pick'lazydocker'
# zinit light jesseduffield/lazydocker
#
# neovim stable releases
#
# zi0c id-as'nvim' \
# ver'v0.9.4' \
# as'program' \
# make"CMAKE_INSTALL_PREFIX=$ZPFX CMAKE_BUILD_TYPE=Release install" \
# blockf \
# bin"$ZPFX/bin/nvim"
# zinit light neovim/neovim
# zi0c id-as'checkmake' \
# from'gh-r' \
# as'program' \
# bpick'*linux.amd64*' \
# mv'checkmake*->checkmake'
# zinit light mrtazz/checkmake
# p10k has a better default configuration
# Git status is still slower than p10k gitstatusd
# zi_ice id-as="starship" \
# from"gh-r" \
# as"program" \
# atload'eval "$(starship init zsh)"'
# zinit load starship/starship
# zsh-abbr is slower than zsh-expand with zinit
# zi0b id-as'zsh-abbr' \
# depth=1 \
# src"${HOME}/.zsh/zsh-aliases"
# zinit light olets/zsh-abbr
# zi0c id-as'git-update' \
# as'program' \
# atclone'go get && go build && mv -v gitupdate git-update' \
# atpull'%atclone' \
# pick'git-update'
# zinit light nikitavoloboev/gitupdate
# zi0c id-as'fzf' \
# from'gh-r' \
# as'program' \
# bpick'*linux_amd64*' \
# dl'https://raw.githubusercontent.com/junegunn/fzf/master/shell/key-bindings.zsh -> key-bindings.zsh' \
# pick'fzf'
# zinit light junegunn/fzf
# zi0b id-as'zsh-completions' \
# depth=1 \
# atload"zicompinit; zicdreplay" \
# blockf
# zinit light zsh-users/zsh-completions
# zi0a id-as'fast-syntax-highlighting' \
# depth=1
# zinit light zdharma-continuum/fast-syntax-highlighting
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
# zinit id-as'z-a-readurl' light-mode for zdharma-continuum/zinit-annex-readurl
# zinit id-as'z-a-as-monitor' light-mode for zdharma-continuum/zinit-annex-as-monitor
# zinit id-as'z-a-bin-mod-node' light-mode for zdharma-continuum/zinit-annex-bin-gem-node
# zinit id-as'z-a-path-dl' light-mode for zdharma-continuum/zinit-annex-patch-dl
# zinit id-as'z-a-rust' light-mode for zdharma-continuum/zinit-annex-rust
# zprof
# vim:ft=zsh ts=2 sw=2 et: