This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
2013-01-18 16:42:30 +01:00
|
|
|
# run myzsh update (every 7 days)
|
|
|
|
timestamp=$(date +%s)
|
|
|
|
lastrun=$(cat $ZSH/lastrun)
|
|
|
|
if [ $((lastrun+604800)) -le $timestamp ]; then
|
|
|
|
echo -e "do you want to update myzsh? [y/n] \c"
|
|
|
|
read choice
|
|
|
|
if [ $choice = "y" ]; then
|
|
|
|
echo "running update of myzsh now.."
|
|
|
|
cd $ZSH; git pull origin master; cd -
|
|
|
|
echo $timestamp > $ZSH/lastrun
|
|
|
|
fi
|
|
|
|
fi
|
2013-01-18 16:16:57 +01:00
|
|
|
|
|
|
|
|
2013-01-17 14:59:21 +01:00
|
|
|
# load core
|
|
|
|
for config_file ($ZSH/core/*.zsh); do
|
|
|
|
source $config_file
|
|
|
|
done
|
|
|
|
|
|
|
|
# load plugins
|
|
|
|
for plugin ($plugins); do
|
|
|
|
if [ -f $ZSH/plugins/$plugin.zsh ]; then
|
|
|
|
source "$ZSH/plugins/$plugin.zsh"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# load theme
|
|
|
|
if [ -f $ZSH/themes/$THEME.zsh ]; then
|
|
|
|
source "$ZSH/themes/$THEME.zsh"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# load completion
|
|
|
|
autoload -U compinit
|
|
|
|
compinit -i
|