-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
39 lines (29 loc) · 805 Bytes
/
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
ANTIGEN_THEME='edudobay/dotfiles@main zsh/themes/edudobay'
declare -A ANTIGEN_BUNDLES_DISABLE
[[ -f ~/.zshrc.before ]] && source ~/.zshrc.before
antigen_add_bundles() {
for bundle; do
[[ ${ANTIGEN_BUNDLES_DISABLE[$bundle]} = 1 ]] && continue
antigen bundle "$bundle"
done
}
# ---- <Antigen>
source ~/dotfiles/antigen.zsh
antigen use oh-my-zsh
antigen_add_bundles \
git \
fzf \
zsh-users/zsh-syntax-highlighting
if [[ -n $ANTIGEN_THEME ]]; then
antigen theme $=ANTIGEN_THEME
fi
antigen apply
# ---- </Antigen>
# Run custom scripts
for file in $HOME/dotfiles/zsh/*.zsh; do
source $file
done
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
# Avoid an initial error status
## 15 Aug 2020 - might conflict with completion system but it works this way
true