From 5cf402336bd9c1a4828f3c5ffdb172a5f37a8f34 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Thu, 1 Jul 2021 21:52:04 -0400 Subject: [PATCH] Add yadm bootstrap file --- .config/yadm/bootstrap | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 .config/yadm/bootstrap diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap new file mode 100755 index 0000000..23bba44 --- /dev/null +++ b/.config/yadm/bootstrap @@ -0,0 +1,43 @@ +#!/usr/bin/sh +# yadm bootstrap file +# used on ubuntu - haven't tested extensively yet + +source ~/.config/shell/start.sh +echo "This script will ask for your sudo password throughout" + +echo "Installing and updating some packages..." +sudo apt update && sudo apt upgrade -y && sudo apt install -y \ + build-essential curl git wget moreutils + +# zsh plugins +# Using debian unstable versions because there are no builds for latest versions of ubuntu +echo "Installing zsh plugins..." +sudo apt install zsh -y +echo 'deb http://download.opensuse.org/repositories/shells:/zsh-users:/zsh-completions/Debian_Unstable/ /' | sudo tee /etc/apt/sources.list.d/shells:zsh-users:zsh-completions.list +curl -fsSL https://download.opensuse.org/repositories/shells:zsh-users:zsh-completions/Debian_Unstable/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_zsh-users_zsh-completions.gpg > /dev/null + +echo 'deb http://download.opensuse.org/repositories/shells:/zsh-users:/zsh-syntax-highlighting/Debian_Unstable/ /' | sudo tee /etc/apt/sources.list.d/shells:zsh-users:zsh-syntax-highlighting.list +curl -fsSL https://download.opensuse.org/repositories/shells:zsh-users:zsh-syntax-highlighting/Debian_Unstable/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_zsh-users_zsh-syntax-highlighting.gpg > /dev/null + +git clone https://github.com/marlonrichert/zsh-autocomplete ~/.config/zsh/autocomplete + +sudo apt update ; sudo apt install -y zsh-completions zsh-syntax-highlighting + +echo "Downloading fonts" +cd $HOME/Downloads +wget "https://download.jetbrains.com/fonts/JetBrainsMono-2.225.zip" +wget "https://github.com/tonsky/FiraCode/releases/download/5.2/Fira_Code_v5.2.zip" +wget "https://bboxtype.com/downloads/FiraGO/Download_Folder_FiraGO_1001.zip" +cd - + +echo "Installing golang" +wget https://golang.org/dl/go1.16.5.linux-amd64.tar.gz /tmp/go.tar.gz && sudo tar -C /usr/local -xzf /tmp/go.tar.gz && rm /tmp/go.tar.gz + +echo "Installing node, npm, etc." +curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash - +sudo apt install -y nodejs +npm install --global yarn + + + +echo "Done!"