-
Notifications
You must be signed in to change notification settings - Fork 0
/
executable_dot_zshrc
36 lines (27 loc) · 1003 Bytes
/
executable_dot_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
# Common shell setup (paths, aliases)
for file in ${HOME}/.snodots/*(Nx-.:t); do
. "${HOME}/.snodots/${file}"
done
# Init zsh
#
# p10k instant prompt needs to stay at the top
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
source "${HOME}/.zsh/antigen/antigen.zsh"
antigen use prezto
antigen theme romkatv/powerlevel10k
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump-${HOST}"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# zsh syntax highlighting needs to be last ZLE widget
antigen bundle zsh-users/zsh-syntax-highlighting
antigen apply
# zsh-specific overrides
for file in ${HOME}/.zsh/snodots/*(N.x:t); do
. "${HOME}/.zsh/snodots/${file}"
done