From 8e0a7668c64e05326e2e8bfe0e6253b0420ff5ec Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Sun, 30 Aug 2020 18:34:45 -0500 Subject: [PATCH] @ --- bootstrap_pi.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/bootstrap_pi.sh b/bootstrap_pi.sh index be0fa4e..d192d9d 100755 --- a/bootstrap_pi.sh +++ b/bootstrap_pi.sh @@ -4,6 +4,8 @@ echo "Git, vi are already installed." +mkdir -p ~/.installed + ## Setup Git and Vim if [ ! -d ~/dotfiles ]; then sudo apt-get install git vim-nox @@ -19,8 +21,9 @@ if [ ! -f ~/.vimrc ]; then ln -s ~/dotfiles/vimrc ~/.vimrc fi -if [ ! -f ~/.i3 ]; then +if [ ! -f ~/.installed/i3 ]; then sudo apt-get install i3 + touch ~/.installed/i3 fi ## Setup PowerShell @@ -54,6 +57,16 @@ if [ ! -d ~/.vim/bundle ]; then vim +BundleInstall +qall fi +if [ ! -d ~/.installed/code ]; then + # sudo apt install snapd + # sudo snap install --classic code + wget https://packagecloud.io/headmelted/codebuilds/gpgkey -O - | sudo apt-key add - + curl -L https://raw.githubusercontent.com/headmelted/codebuilds/master/docs/installers/apt.sh | sudo bash + touch ~/.installed/code +fi + echo "https://github.com/settings/keys" echo "vim .git/config -- add: url = git@github.com:edthedev/dotfiles.git" cat ~/.ssh/id_rsa.pub + +ls -al ~/.installed -- 2.47.3