-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
45 lines (32 loc) · 1.25 KB
/
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
36
37
38
39
40
41
42
43
44
# load zgenom
source "${HOME}/.zgenom/zgenom.zsh"
touch -a "${HOME}/.secrets" && source "${HOME}/.secrets"
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff00ff,bg=cyan,bold,underline"
# Check for plugin and zgenom updates every 7 days
# This does not increase the startup time.
zgenom autoupdate
# if the init script doesn't exist
if ! zgenom saved; then
echo "Creating a zgenom save"
zgenom load https://gitlab.com/code-stats/code-stats-zsh.git
zgenom load romkatv/powerlevel10k powerlevel10k
#zgenom load zsh-users/zsh-completions src
zgenom load zsh-users/zsh-syntax-highlighting
zgenom load zsh-users/zsh-autosuggestions
#zgenom load zsh-users/zsh-autocomplete
# completions
#zgenom load zsh-users/zsh-completions
# save all to init script
zgenom save
# Compile your zsh files
zgenom compile "$HOME/.zshrc"
fi
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
## To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
. "$HOME/.asdf/asdf.sh"
touch ~/.aliases && source ~/.aliases
# Give access to chezmoi and other homedir installed bins
export PATH="${PATH}:${HOME}/bin"