helm/bin/update
2015-05-20 22:53:37 -04:00

28 lines
568 B
Bash
Executable file

#!/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