]> apps.delaporte.us Git - dotfiles.git/blob - bootstrap.sh
Shortcut to find large files.
[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 ## Setup Git and Vim
12 if [ ! -d ~/dotfiles ]; then
13 sudo apt-get install git install vim
14 # TODO: Consider vim-nox to resolve 'needs python' error from some of my vundle plugins.
15 git config --global user.email "edward@delaporte.us"
16 git config --global user.name "Edward Delaporte"
17 git config --global core.editor /usr/bin/vim
18 cd ~; git clone git@github.com:edthedev/dotfiles.git
19 fi
20 if [ ! -f ~/.vimrc ]; then
21 ln -s ~/dotfiles/vimrc ~/.vimrc
22 fi
23
24 ## Setup PowerShell
25 if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then
26 sudo apt-get install powershell
27 chsh --shell /usr/bin/pwsh
28 mkdir -p /home/delaport/.config/powershell/
29 ln -s ~/dotfiles/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1
30 fi
31
32 ## Create SSH Keys
33 if [ ! -f ~/.ssh/id_rsa ]; then
34 ssh-keygen
35 fi
36
37 ## Setup Remote Access
38 # if [ ! -f ~/id_rsa.pub ]; then
39 # cp ~/dotfiles/id_rsa.pub ~/id_rsa.pub
40 # chmod go+r ~/id_rsa.pub
41 # fi
42
43 ## Setup ZShell Profile
44 # if [ ! -f ~/.zshrc ]; then
45 # ln -s ~/dotfiles/zshrc ~/.zshrc
46 # fi
47 # if [ ! -f ~/dotfiles/antigen/README.md ]; then
48 # cd ~/dotfiles;git submodule update --init
49 # fi
50
51 ## Setup Screen
52 if [ ! -f ~/.screenrc ]; then
53 sudo apt-get install screen
54 ln -s ~/dotfiles/screenrc ~/.screenrc
55 fi
56
57 ## Setup Vundle for Vim
58 if [ ! -d ~/.vim/bundle ]; then
59 git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
60 vim +BundleInstall +qall
61 fi