-
Notifications
You must be signed in to change notification settings - Fork 3
/
.zshrc
37 lines (28 loc) · 779 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
#!/bin/zsh
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#
# Global Order: zshenv, zprofile, zshrc, zlogin
autoload -U compinit zrecompile
zsh_cache="${HOME}/.zsh_cache"
mkdir -p $zsh_cache
if [ $UID -eq 0 ]; then
compinit -i
else
compinit -i -d $zsh_cache/zcomp-$HOST
for f in ~/.zshrc $zsh_cache/zcomp-$HOST; do
zrecompile -p $f && rm -f $f.zwc.old
done
fi
setopt extended_glob
for zshrc in ~/.zsh/rc.d/[0-9][0-9]*[^~] ; do
source $zshrc
done
[[ -r $HOME/.zshrc.local ]] && source $HOME/.zshrc.local
if [[ "$PROFILE_STARTUP" == true ]]; then
#echo "ending profile in interactive mode"
zprof
unsetopt xtrace
exec 2>&3 3>&-
fi