]> us-delaporte.pagekite.me Git - dotfiles.git/blob - bootstrap_pi.sh
0c27dbea5acac3f79db6eae6c8e135d362433193
[dotfiles.git] / bootstrap_pi.sh
1 # Reminder to future self:
2 # Step 0: git clone https://github.com/edthedev/dotfiles
3 # Step 1: Run this bootstrap script.
4
5 echo "Git, vi are already installed."
6
7 ## Setup Git and Vim
8 if [ ! -d ~/dotfiles ]; then
9 sudo apt-get install git vim-nox
10 cd ~; git clone git@github.com:edthedev/dotfiles.git
11 fi
12
13 # sudo apt-get install vim-nox
14
15 if [ ! -f ~/.vimrc ]; then
16 git config --global user.email "edward@delaporte.us"
17 git config --global user.name "Edward Delaporte"
18 git config --global core.editor /usr/bin/vim
19 ln -s ~/dotfiles/vimrc ~/.vimrc
20 fi
21
22 if [ ! -f ~/.i3 ]; then
23 sudo apt-get install i3
24 fi
25
26 ## Setup PowerShell
27 if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then
28 sudo apt-get install powershell
29 chsh --shell /usr/bin/pwsh
30 mkdir -p ~/.config/powershell/
31 ln -s ~/dotfiles/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1
32 fi
33
34 ## Create SSH Keys
35 if [ ! -f ~/.ssh/id_rsa ]; then
36 ssh-keygen
37 fi
38
39 ## Setup Remote Access
40 # if [ ! -f ~/id_rsa.pub ]; then
41 # cp ~/dotfiles/id_rsa.pub ~/id_rsa.pub
42 # chmod go+r ~/id_rsa.pub
43 # fi
44
45 ## Setup Screen
46 if [ ! -f ~/.screenrc ]; then
47 sudo apt-get install screen
48 ln -s ~/dotfiles/screenrc ~/.screenrc
49 fi
50
51 ## Setup Vundle for Vim
52 if [ ! -d ~/.vim/bundle ]; then
53 git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
54 vim +BundleInstall +qall
55 fi