-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
47 lines (40 loc) · 1.14 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
# Use zprof if ZSH_DEBUGRC=1
# This is used to test initializing time for this zshrc
# To debug, just start new shell with ZSH_DEBUGRC setted, aka:
#
# $ time ZSH_DEBUGRC=1 zsh -i -c exit
#
if [ -n "${ZSH_DEBUGRC+1}" ]; then
zmodload zsh/zprof
fi
# Enable Lazy load to the plugins.
# TODO: Put an exemple here
source $DOTFILES/lib/lazy_load.zsh
## Source enabled plugins
# To enable a plugin, just synlink it to $DOTFILES_CONFIG/enabled/
# E.g.:
#
# $ ln -s $DOTFILES/plugins/zsh/ zsh
#
for file in $DOTFILES_CONFIG/enabled/***/*.plugin.zsh(N); do
source $file
done
# for security reason, we unload lazy load function
# after our plugins are loaded.
unfunction lazy_load
#### Source Remote plugins
# TODO: make a better way to install and manage external plugins
for file in $HOME/dotfiles/.remote_plugins/**/*.plugin.zsh(N); do
source $file
done
### Local Overrides
# Use this file to put your customization i.e. themes, alias, etc
if [[ -f "$HOME/.zshrc.local" ]] ; then
source "$HOME/.zshrc.local"
fi
# this theme is defined on $DOTFILES/themes/ folder.
source $DOTFILES/lib/themes.zsh
# end zprof
if [ -n "${ZSH_DEBUGRC+1}" ]; then
zprof
fi