helm/scripts/update.sh

28 lines
481 B
Bash
Raw Normal View History

2015-05-20 19:53:37 -07:00
#!/bin/zsh
2015-06-19 14:37:38 -07:00
set -e
2015-05-20 19:53:37 -07:00
brew update && brew upgrade --all
cd "$HOME/.emacs.d" && make update
2015-05-20 19:53:37 -07:00
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
2015-06-19 14:37:38 -07:00
if [ -d ~/.zsh/zgen ]; then
source ~/.zsh/zgen/zgen.zsh
zgen selfupdate
zgen update
2015-05-20 19:53:37 -07:00
fi