add bootstrap/update script
This commit is contained in:
parent
2d83f718dd
commit
0ee705707b
26
bootstrap.sh
Executable file
26
bootstrap.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ~
|
||||
if [ ! -d ".dotfiles" ]
|
||||
then
|
||||
git clone http://adamgoldsmith.name/cgit/dotfiles.git .dotfiles
|
||||
else
|
||||
echo "~/.dotfiles already exists, not cloning"
|
||||
fi
|
||||
|
||||
echo "Updating .dotfiles"
|
||||
cd .dotfiles
|
||||
git pull
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
echo "Updating .dotfiles/zsh/.zprezto"
|
||||
cd zsh/.zprezto/
|
||||
git pull
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
echo "Stowing emacs, zsh, and git"
|
||||
cd ~/.dotfiles/
|
||||
stow emacs zsh git
|
||||
echo 'Didn'\''t stow ssh, please stow that manually with "stow ssh" in the .dotfiles directory if you want that'
|
Loading…
Reference in New Issue
Block a user