-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
57 lines (43 loc) · 1.38 KB
/
.zshrc
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
typeset -F4 SECONDS=0
zmodload zsh/zprof
.init() {
# ==> completion helpers
has 'fzf' && source 'Aloxaf/fzf-tab' defer'idle'
has 'fzf' && source 'joshskidmore/zsh-fzf-history-search' defer'idle'
# # ==> zle helpers
source 'hlissner/zsh-autopair' defer'idle'
source 'z-shell/F-Sy-H' defer'idle'
source 'olets/zsh-abbr' defer'idle'
source '@omzp/fancy-ctrl-z' defer'idle'
# # ==> productivity
source '@omzp/fasd' defer'idle' has'fasd'
source 'zpm-zsh/undollar' defer'idle'
# # ==> habits
source 'MichaelAquilina/zsh-you-should-use' defer'idle'
source 'ahmubashshir/zinsults' defer'idle'
# ==> tools dev
has 'git' && source "@omzp/git" defer'idle'
has 'gh' && source "@omzp/gh" defer'idle'
# # ==> misc
has 'exa' && source 'MohamedElashri/exa-zsh' defer'idle' # ls
# # ==> config
source "@omzl/history"
source "jeffreytse/zsh-vi-mode"
# ==> theme
source "romkatv/powerlevel10k" pick"powerlevel10k.zsh-theme"
}
() {
# ==> @omzl/history
export HISTSIZE=5000000
export SAVEHIST=1000000
export HISTFILE=${HOME}/.zhistory
# ==> MichaelAquilina/zsh-you-should-use
export YSU_MESSAGE_POSITION="after"
# ===> romkatv/powerlevel10k
export POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
# ===> jeffreytse/zsh-vi-mode
export ZVM_INIT_MODE=sourcing
}
source zutils.plugin.zsh
# local endtime="${(M)$(( SECONDS * 1000 ))#*.?}"
# zprof; print "\n[zshrc] zutils took ${endtime} ms"