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 # sudo apt-get install zsh
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
23 if [ ! -f ~
/.vimrc
]; then
24 ln -s ~
/dotfiles
/vimrc ~
/.vimrc
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
36 if [ ! -f ~
/.ssh
/id_rsa
]; then
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
46 ## Setup ZShell Profile
47 # if [ ! -f ~/.zshrc ]; then
48 # ln -s ~/dotfiles/zshrc ~/.zshrc
50 # if [ ! -f ~/dotfiles/antigen/README.md ]; then
51 # cd ~/dotfiles;git submodule update --init
55 if [ ! -f ~
/.screenrc
]; then
56 sudo apt
-get install screen
57 ln -s ~
/dotfiles
/screenrc ~
/.screenrc
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