]>
us-delaporte.pagekite.me Git - dotfiles.git/blob - bootstrap.sh
561e90f1256b893c39c65855a413dc52a8ad95a5
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.
8 # You can scp just this file to the destination host,
11 if [ ! -f ~
/.ssh
/id_rsa
]; then
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
21 if [ ! -f ~
/.zshrc
]; then
22 ln -s ~
/dotfiles
/zshrc ~
/.zshrc
25 if [ ! -f ~
/.screenrc
]; then
26 ln -s ~
/dotfiles
/screenrc ~
/.screenrc
29 if [ ! -f ~
/dotfiles
/antigen
/README.md
]; then
30 cd ~
/dotfiles
;git submodule update
--init
33 if [ ! -f ~
/.vimrc
]; then
34 ln -s ~
/dotfiles
/vimrc ~
/.vimrc
37 if [ ! -d ~
/.vim
/bundle
]; then
38 git clone https
://github.com
/gmarik
/Vundle.vim.git ~
/.vim
/bundle
/Vundle.vim
39 vim
+BundleInstall
+qall