Modify PRESTOW to use ZIM

This commit is contained in:
Adam Goldsmith 2016-02-11 11:02:07 -05:00
parent 5371a9e12b
commit 47ffc993be

18
PRESTOW
View File

@ -1,19 +1,17 @@
#!/bin/bash
[ -d .zprezto ] && firstRun=1
[ -d .zim ] && firstRun=1
echo "Getting prezto"
cd zsh
git submodule init
git submodule update
echo "Getting zim"
git submodule update --init --recursive
echo "Updating .dotfiles/zsh/.zprezto"
cd .zprezto
echo "Updating .dotfiles/zsh/.zim"
cd .zim
if [ $firstRun -eq 1 ]
then
git remote set-url origin http://adamgoldsmith.name/cgit/prezto.git
git remote set-url --push origin ssh://adamgoldsmith.name:443/srv/git/prezto.git
git remote add upstream https://github.com/sorin-ionescu/prezto.git
git remote set-url origin "http://adamgoldsmith.name/cgit/zim.git"
git remote set-url --push origin "ag:/srv/git/zim.git"
git remote add upstream "https://github.com/Eriner/zim.git"
fi
git submodule init
git submodule update