1 # Reminder to future self:
2 # Step 0: git clone https://github.com/edthedev/dotfiles
3 # Step 1: Run this bootstrap script.
5 echo "Git, vi are already installed."
10 if [ ! -d ~
/dotfiles
]; then
11 sudo apt
-get install git vim
-nox
12 cd ~
; git clone git@github.com
:edthedev
/dotfiles.git
15 # sudo apt-get install vim-nox
17 if [ ! -f ~
/.vimrc
]; then
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 ln -s ~
/dotfiles
/vimrc ~
/.vimrc
24 if [ ! -f ~
/.installed
/i3
]; then
25 sudo apt
-get install i3
30 if [ ! -f ~
/.config
/powershell
/Microsoft.PowerShell_profile.ps1
]; then
31 sudo apt
-get install powershell
32 chsh
--shell /usr
/bin
/pwsh
33 mkdir -p ~
/.config
/powershell
/
34 ln -s ~
/dotfiles
/Microsoft.PowerShell_profile.ps1 ~
/.config
/powershell
/Microsoft.PowerShell_profile.ps1
38 if [ ! -f ~
/.ssh
/id_rsa
]; then
42 ## Setup Remote Access
43 # if [ ! -f ~/id_rsa.pub ]; then
44 # cp ~/dotfiles/id_rsa.pub ~/id_rsa.pub
45 # chmod go+r ~/id_rsa.pub
49 if [ ! -f ~
/.screenrc
]; then
50 sudo apt
-get install screen
51 ln -s ~
/dotfiles
/screenrc ~
/.screenrc
54 ## Setup Vundle for Vim
55 if [ ! -d ~
/.vim
/bundle
]; then
56 git clone https
://github.com
/gmarik
/Vundle.vim.git ~
/.vim
/bundle
/Vundle.vim
57 vim
+BundleInstall
+qall
60 if [ ! -d ~
/.installed
/code
]; then
61 # sudo apt install snapd
62 # sudo snap install --classic code
63 wget https
://packagecloud.io
/headmelted
/codebuilds
/gpgkey
-O - | sudo apt
-key add
-
64 curl
-L https
://raw.githubusercontent.com
/headmelted
/codebuilds
/master
/docs
/installers
/apt.sh
| sudo bash
65 touch ~
/.installed
/code
68 echo "https://github.com/settings/keys"
69 echo "vim .git/config -- add: url = git@github.com:edthedev/dotfiles.git"