forked from anishathalye/dotfiles_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
53 lines (38 loc) · 1.05 KB
/
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
45
46
47
48
49
50
51
52
# Stops config if this terminal is non-interactive
[[ -z "$PS1" ]] && return
# Settings
source ~/.shell/settings.zsh
# Custom prompt
source ~/.shell/prompt.zsh
# Bootstrap
source ~/.shell/bootstrap.sh
# Check for antigen and install if not
if [ ! -f "$HOME/antigen.zsh" ]
then
echo "Antigen not installed. Pulling."
curl -L git.io/antigen > $HOME/antigen.zsh
fi
# Source antigenrc
[[ -f ~/.antigenrc ]] && . ~/.antigenrc
# External settings
source ~/.shell/external.sh
# Exports
source ~/.shell/exports.sh
# Aliases
source ~/.shell/aliases.sh
# Functions
source ~/.shell/functions.sh
# Allow local customizations in the ~/.shell_local_after file
if [ -f ~/.shell_local_after ]; then
source ~/.shell_local_after
fi
# Allow local customizations in the ~/.zshrc_local_after file
if [ -f ~/.zshrc_local_after ]; then
source ~/.zshrc_local_after
fi
# fzf completions
[[ -f ~/.fzf.zsh ]] && . ~/.fzf.zsh
# Autostart X at login, make sure to point xinitrc to correct window manager
#if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
# exec startx
#fi