From 5feaa5329d13e1b84fb198ff9b93c686be2f6545 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Thu, 8 Aug 2019 17:34:56 -0700 Subject: [PATCH] some arch configs so I dont have to type so much --- arch-configs/fresh_install.sh | 55 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 arch-configs/fresh_install.sh diff --git a/arch-configs/fresh_install.sh b/arch-configs/fresh_install.sh new file mode 100755 index 0000000..4b3c6dd --- /dev/null +++ b/arch-configs/fresh_install.sh @@ -0,0 +1,55 @@ +#!/usr/bin/bash + +# TODO: +# * Add a cache list of installed packages +# so it doesnt go through the entire list each +# time. +# +# * Store last update date somehow so it doesn't +# constantly update the system (perhaps only one update a day) +# +# * Create a second script that links dotfiles properly +# + +# Update system +# +sudo pacman -Syyu + +# Packages - Add stuff you want installed here +# +PACKAGES=( "yay" # Better package manager \ + "inconsolata-ttf" # Inconsolata font \ + "zsh" # Beats bash \ + ) + +# Put AUR packages here +# +YAY_PACKAGES=( "nordvpn-bin" # Nice manager for NordVPN \ + ) + +# First install essential packages +# +echo Installing essential packages... +for package in "${PACKAGES[@]}" +do + sudo pacman -Syu $package +done + +# Now yay packages - which can use AUR +for package in "${YAY_PACKAGES[@]}" +do + yay -Syu $package +done + +# Here do any extra configuration + +echo Launching NordVPN service... +sudo systemctl enable nordvpnd.service +sudo systemctl start nordvpnd.service + +# OTHER STUFF HERE + +echo Making ZSH the default shell for the current user +chsh -s $(which zsh) + +echo Please run the dotfile script and restart your system...