mattfoster / zshkit forked from bkerley/zshkit

My way-overdone zsh config scripts

This URL has Read+Write access

zshkit / 02_update
100644 16 lines (15 sloc) 0.218 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if [[ -x `which git` ]]; then
mydir=`dirname $0`
if [[ $mydir = . ]]; then
mydir=`pwd`
fi
 
function zshkit-update () {
pushd $HOME
pushd $mydir
git pull
popd
source .zshrc
source .zshenv
popd
}
fi