]> us-delaporte.pagekite.me Git - dotfiles.git/blob - bootstrap_pi.sh
Pi script
[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 ## Setup PowerShell
23 if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then
24 sudo apt-get install powershell
25 chsh --shell /usr/bin/pwsh
26 mkdir -p ~/.config/powershell/
27 ln -s ~/dotfiles/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1
28 fi
29
30 ## Create SSH Keys
31 if [ ! -f ~/.ssh/id_rsa ]; then
32 ssh-keygen
33 fi
34
35 ## Setup Remote Access
36 # if [ ! -f ~/id_rsa.pub ]; then
37 # cp ~/dotfiles/id_rsa.pub ~/id_rsa.pub
38 # chmod go+r ~/id_rsa.pub
39 # fi
40
41 ## Setup Screen
42 if [ ! -f ~/.screenrc ]; then
43 sudo apt-get install screen
44 ln -s ~/dotfiles/screenrc ~/.screenrc
45 fi
46
47 ## Setup Vundle for Vim
48 if [ ! -d ~/.vim/bundle ]; then
49 git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
50 vim +BundleInstall +qall
51 fi