Update update.sh

This commit is contained in:
Henrik Lissner 2016-02-26 00:11:48 -05:00
parent 2869e80860
commit cf19007423

View file

@ -14,7 +14,7 @@ up-to-date() {
{ brew update; brew upgrade --all; brew cleanup } | indent { brew update; brew upgrade --all; brew cleanup } | indent
} }
[[ -f "$HOME/.emacs.d/Makefile" ]] && { [ -f "$HOME/.emacs.d/Makefile" ] && {
echo -n "Updating emacs" echo -n "Updating emacs"
cd "$HOME/.emacs.d" && make update | indent cd "$HOME/.emacs.d" && make update | indent
} }
@ -22,11 +22,10 @@ up-to-date() {
local env=(rb py) local env=(rb py)
for i in $env for i in $env
do do
[[ -d "$HOME/.${i}env" ]] && { [ -d "$HOME/.${i}env" ] && {
echo "Updating ${i}env" echo "Updating ${i}env"
{ {
git pull > /dev/null git pull > /dev/null
{ {
for plugin in "$HOME"/.${i}env/plugins/* for plugin in "$HOME"/.${i}env/plugins/*
do do
@ -39,10 +38,10 @@ do
} }
done done
[[ -d ~/.zsh/zgen ]] && { [ -d ~/.zsh/zgen ] && {
echo "Updating zgen" echo "Updating zgen"
{ {
source "$HOME/.zsh/zgen/zgen.zsh" source "$HOME/.zgen/zgen.zsh"
zgen selfupdate zgen selfupdate
zgen update zgen update
} 2>&1 | indent } 2>&1 | indent