Add yadm bootstrap file

old-yadm
earnest ma 2021-07-01 21:52:04 -04:00
parent fb7f0a5b63
commit 5cf402336b
No known key found for this signature in database
GPG Key ID: 6B361FA81C5FB695
1 changed files with 43 additions and 0 deletions

43
.config/yadm/bootstrap Executable file
View File

@ -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!"