blob: 910716f75f6f24fce50d994aeafb9322e1167d2c (
plain)
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
|
#!/usr/bin/env zsh
if [[ -x =emacs ]]
then
emacs --batch -f batch-byte-compile ~/.emacs.d/init.el
emacs --batch -f batch-byte-compile ~/.emacs.d/elisp/*.el
fi
fasd_cache=~/.zsh/cache/fasd-init-zsh
if [[ ! -s "$fasd_cache" || zsh/functions/fasd -nt "$fasd_cache" ]]; then
zsh/functions/fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install >! "$fasd_cache"
fi
autoload -U zrecompile
local -a zfiles
zfiles=(
zsh/functions/fasd/fasd
$fasd_cache
zsh/zshrc
zsh/zshrc_${HOST%%.*}
)
if [[ -e /usr/bin/emerge ]]; then
zfiles+=zsh/zshrc_gentoo
fi
if [[ $OSTYPE == freebsd ]]; then
zfiles+=zsh/zshrc_freebsd
fi
zrecompile -p -R ~/.zshrc.zwc $zfiles
for fp in zsh/functions/*(/); do
zrecompile -p $fp $fp/*
done
|