From 2c99828ef7e3c0bcfa90c05c9c9ff4106d167c73 Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Sat, 11 Sep 2021 09:36:34 -0400 Subject: [PATCH] Add bootstrap script --- bootstrap.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100644 index 0000000..3b875c7 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +if ! [ -a /usr/bin/nvim ]; then + echo "Installing nvim..." + curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage + chmod au+x nvim.appimage + cp nvim.appimage /usr/bin/nvim + + sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60 + sudo update-alternatives --config vi + sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60 + sudo update-alternatives --config vim + sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60 + sudo update-alternatives --config editor +fi + +sudo apt update +sudo apt install -y tmux stow podman + +mkdir -p ~/Code +cd ~/Code + +if ! [ -a config ]; then + git clone https://github.com/ntietz/config.git + cd config +fi + + +