-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecutable_dot_zshrc
More file actions
43 lines (35 loc) · 1.19 KB
/
executable_dot_zshrc
File metadata and controls
43 lines (35 loc) · 1.19 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
# Common shell setup (paths, aliases)
for file in ${HOME}/.snodots/*(Nx-.:t); do
. "${HOME}/.snodots/${file}"
done
ANTIGEN_COMPDUMP="${HOME}/.zsh/.zcompdump"
# manually change to true when debugging shell startup
if [ false ]; then
POWERLEVEL9K_INSTANT_PROMPT=off
ANTIGEN_CACHE=false
rm $ANTIGEN_COMPDUMP
fi
# 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
antigen bundle atuinsh/atuin@main
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
# 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
eval "$(atuin init --disable-up-arrow zsh)"