Add bin/update script

This commit is contained in:
Henrik Lissner 2015-05-20 22:53:37 -04:00
parent 84de9a8627
commit 8136a7cec5

27
bin/update Executable file
View file

@ -0,0 +1,27 @@
#!/bin/zsh
brew update && brew upgrade --all
cd "$HOME/.emacs.d" && git pull && make
cd "$HOME/.dotfiles" && git pull
local i
if [ -d ~/.rbenv ]; then
cd "$HOME/.rbenv" && git pull
for i in "$HOME"/.rbenv/plugins/*; do
cd "$i" && git pull
done
fi
if [ -d ~/.pyenv ]; then
cd "$HOME/.pyenv" && git pull
for i in "$HOME"/.pyenv/plugins/*; do
cd "$i" && git pull
done
fi
if [ -d ~/.zprezto ]; then
cd "$HOME/.zprezto"
git fetch parent
git submodule foreach git checkout master
git submodule foreach git pull
fi