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,
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
20 if [ ! -f ~
/.vimrc
]; then
21 ln -s ~
/dotfiles
/vimrc ~
/.vimrc
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
33 if [ ! -f ~
/.ssh
/id_rsa
]; then
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
43 ## Setup ZShell Profile
44 # if [ ! -f ~/.zshrc ]; then
45 # ln -s ~/dotfiles/zshrc ~/.zshrc
47 # if [ ! -f ~/dotfiles/antigen/README.md ]; then
48 # cd ~/dotfiles;git submodule update --init
52 if [ ! -f ~
/.screenrc
]; then
53 sudo apt
-get install screen
54 ln -s ~
/dotfiles
/screenrc ~
/.screenrc
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