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