Skip to content

Instantly share code, notes, and snippets.

@medizinmensch
Last active November 30, 2021 23:07
Show Gist options
  • Save medizinmensch/612fb65e96b19fce5029295117bdb754 to your computer and use it in GitHub Desktop.
Save medizinmensch/612fb65e96b19fce5029295117bdb754 to your computer and use it in GitHub Desktop.
Arch Setup
#!/bin/bash
install_basics () {
sudo pacman -Syu --noconfirm --needed firefox keepassxc nextcloud-client alacritty git base-devel
}
change_shell () {
chsh -s $(which zsh)
}
install_yay () {
mkdir -p ~/dev/private
cd ~/dev/private
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
yay -S --save --answerclean All --answerdiff None --needed zplug powerpill nvm rpi-imager snapd
}
install_packages () {
sudo powerpill -S --needed alacritty ant aws-cli bash-completion bat blueman bluez-utils bemenu borg chromium dbeaver deluge-gtk discord docker-compose emacs exa fd ffmpeg firefox flac flameshot foliate fzy gimp git git-crypt git-delta github-cli gparted gradle htop hugo intellij-idea-community-edition iproute2 iputils jq keepassxc keychain kubectl less logrotate lsd man-db man-pages mariadb maven minikube ncdu neofetch neovim nextcloud-client ninja npm obs-studio okular openssh p7zip pandoc pcmanfm plocate powerline-fonts powertop pwgen ranger rsync screenfetch sed signal-desktop speedtest-cli sshuttle tar tcpdump telegram-desktop terminator terminus-font terraform tldr tree ttf-bitstream-vera ttf-dejavu ttf-droid ttf-inconsolata ttf-indic-otf ttf-joypixels ttf-liberation unzip vi vim vlc wget yarn zip zola zsh gnu-netcat
}
function config {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
setup_dotfiles () {
echo ".dotfiles" >> ~/.gitignore
git clone --bare https://github.com/medizinmensch/dotfiles.git $HOME/.dotfiles
config checkout 2>&1 | egrep "\s+\." | awk {'print $0'} | xargs -I{} rm -rf {}
config checkout
config config status.showUntrackedFiles no
}
install_omz () {
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
}
install_basics
# change_shell # optional with omz
install_yay
zplug install
setup_dotfiles
install_omz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment