Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

52 lines (40 sloc) 1 KB
#!/usr/bin/env zsh
# vim:syntax=zsh
# vim:filetype=zsh
# for profiling zsh
# https://unix.stackexchange.com/a/329719/27109
#
#zmodload zsh/zprof
export SCRIPTS=${HOME}/scripts
export ZSHCONFIG=${ZDOTDIR:-$HOME}/.zsh-config
ZSH_INIT=${ZSHCONFIG}/_init.sh
if [[ -s ${ZSH_INIT} ]]; then
source ${ZSH_INIT}
else
echo "Could not find the init script ${ZSH_INIT}"
fi
#
# https://gist.github.com/ctechols/ca1035271ad134841284
# https://carlosbecker.com/posts/speeding-up-zsh
#
autoload -Uz compinit
case $SYSTEM in
Darwin)
if [ $(date +'%j') != $(/usr/bin/stat -f '%Sm' -t '%j' ${ZDOTDIR:-$HOME}/.zcompdump) ]; then
compinit;
else
compinit -C;
fi
;;
Linux)
# not yet match GNU & BSD stat
;;
esac
# see zplugin-init.zsh with Turbo Mode
#[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# https://direnv.net/
# see zplugin-init.zsh
# https://github.com/zdharma/zplugin/wiki/Direnv-explanation
#eval "$(direnv hook zsh)"
# Private script here
[ -f ~/.private.zsh ] && source ~/.private.zsh
You can’t perform that action at this time.