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