-
Notifications
You must be signed in to change notification settings - Fork 4
/
ant-zsh.zsh
52 lines (46 loc) · 1.13 KB
/
ant-zsh.zsh
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
# some pre-checks
if [ -z "$ZSH" ]; then
echo "\033[00;31mERROR: missing ZSH env var! read the README!"
return
fi
if [ ! -d "$ZSH" ]; then
echo "\033[00;31mERROR: ZSH env var leads nowhere: '$ZSH'"
return
fi
# include all lib config files
for config_file ($ZSH/lib/*.zsh) source $config_file
# load antigen
ADOTDIR="${ZSH}/plugin"
source "${ZSH}/plugin/antigen/antigen.zsh"
# define and load the plugins
if [ "$ZSH_DEFAULT_PLUGINS_DISABLE" != "1" ]; then
default_plugins=(cowfortune virtualenv ccache)
fi
load_plugin $default_plugins $plugins
antigen bundles <<EOBUNDLES
olivierverdier/zsh-git-prompt
zsh-users/zsh-completions src
zsh-users/zaw
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
git
git-flow
taskwarrior
colored-man-pages
extract
python
vi-mode
EOBUNDLES
antigen apply
# post plugin setup
source "${ZSH}/lib/S99.post-plugin.zsh"
# fallback theme
if [ -z "$ZSH_THEME" ]; then
ZSH_THEME=anthraxx
fi
# include defined theme
if [ ! -f "${ZSH}/theme/${ZSH_THEME}.zsh" ]; then
echo "\033[00;31mERROR: could not find ZSH_THEME '${ZSH_THEME}'"
ZSH_THEME=anthraxx
fi
source "${ZSH}/theme/${ZSH_THEME}.zsh"