22 lines
548 B
Bash
22 lines
548 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# dotfiles/scripts
|
|
# Basic scripts to rebuild a system.
|
|
# Usage:
|
|
# bash README.txt arch
|
|
|
|
# bootstrap.txt - bare minimum programs. Necessary for system use.
|
|
# Install these before running this script.
|
|
# packages.txt - packages available in most package managers.
|
|
# packages-distro-manager.txt - packages not available in every manager.
|
|
|
|
if [ $1 = "arch" ]; then
|
|
sudo pacman -S $(cat packages.txt packages-arch-pacman.txt)
|
|
bash yay.sh # builds yay for use with Arch Linux.
|
|
yay -S $(cat packages-arch-yay)
|
|
fi
|
|
|
|
bash dotfiles.sh
|