-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
40 lines (31 loc) · 977 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
40
# Downloads antigen if not present on ZDOTDIR
if [[ ! -f $ZDOTDIR/antigen.zsh ]]; then
curl https://cdn.rawgit.com/zsh-users/antigen/master/bin/antigen.zsh -o $ZDOTDIR/antigen.zsh
fi
# Load antigen
source $ZDOTDIR/antigen.zsh
# Main settings
source $ZDOTDIR/zshrc/settings.zsh
# WSL specific settings
if [[ -d /proc/sys/kernel/osrelease ]]; then
grep -q 'Microsoft' /proc/sys/kernel/osrelease && source $ZDOTDIR/zshrc/wsl.zsh
fi
# macOS specific settings
if [[ -d /Library ]]; then
source $ZDOTDIR/zshrc/macos.zsh
fi
# Antigen commands
antigen init $ZDOTDIR/zshrc/antigenrc.zsh
source $ZDOTDIR/zshrc/temp.zsh
# Load direnv
eval "$(direnv hook zsh)"
# Completions
# . ${XDG_CONFIG_HOME:-$HOME/.config}/asdf/completions/asdf.bash
# Other local scripts
source $ZDOTDIR/zshrc/aliases.zsh
source $ZDOTDIR/zshrc/thefuck.zsh
source $ZDOTDIR/zshrc/functions.zsh
# fzf (only if installed)
if ( hash fzf 1>/dev/null 2>&1 ); then
source $ZDOTDIR/zshrc/fzf-widgets.zsh
fi