]> apps.delaporte.us Git - dotfiles.git/blob - bootstrap.sh
Reminder of steps.
[dotfiles.git] / bootstrap.sh
1 # Reminder to future self:
2 # Step 1: ssh-keygen on remote host.
3 # Step 2: Add ssh pubkey to GitHub as deploy key.
4 # Step 3: clone the repo.
5 # Step 4: Run this bootstrap script.
6
7 # You can scp just this file to the destination host,
8 # and then run it.
9
10 if [ ! -f ~/.ssh/id_rsa ]; then
11 ssh-keygen
12 fi
13
14 if [ ! -d ~/dotfiles ]; then
15 cd ~; git clone git@github.com:edthedev/dotfiles.git
16 cp ~/dotfiles/id_rsa.pub ~/id_rsa.pub
17 chmod go+r ~/id_rsa.pub
18 fi
19
20 if [ ! -f ~/.zshrc ]; then
21 ln -s ~/dotfiles/zshrc ~/.zshrc
22 fi
23
24 if [ ! -f ~/.screenrc ]; then
25 ln -s ~/dotfiles/screenrc ~/.screenrc
26 fi
27
28 if [ ! -f ~/dotfiles/antigen/README.md ]; then
29 cd ~/dotfiles;git submodule update --init
30 fi
31
32 if [ ! -f ~/.vimrc ]; then
33 ln -s ~/dotfiles/vimrc ~/.vimrc
34 fi
35
36 if [ ! -d ~/.vim/bundle ]; then
37 git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
38 vim +BundleInstall +qall
39 fi