zsh/PRESTOW

18 lines
399 B
Plaintext
Raw Permalink Normal View History

2015-09-05 12:53:01 -04:00
#!/bin/bash
2016-02-11 11:02:07 -05:00
[ -d .zim ] && firstRun=1
2015-09-05 12:53:01 -04:00
2016-02-11 11:02:07 -05:00
echo "Getting zim"
git submodule update --init --recursive
2015-09-05 12:53:01 -04:00
2016-02-11 11:02:07 -05:00
echo "Updating .dotfiles/zsh/.zim"
cd .zim
2015-09-05 12:53:01 -04:00
if [ $firstRun -eq 1 ]
then
2016-02-11 11:02:07 -05:00
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"
2015-09-05 12:53:01 -04:00
fi
git submodule init
git submodule update