cleanup
This commit is contained in:
parent
271b66dad9
commit
d5fced4e11
@ -1,38 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# dotfiles/scripts
|
||||
# Basic scripts to rebuild a system.
|
||||
# Usage:
|
||||
# bash README.txt arch
|
||||
|
||||
# packages/bootstrap - bare minimum programs. Necessary for system use.
|
||||
# Install these before running this script.
|
||||
|
||||
mkdir -p $HOME/bin # executables
|
||||
mkdir -p $HOME/src # source code
|
||||
|
||||
if [ $1 = "arch" ]; then
|
||||
sudo pacman -S $(cat packages/all packages/*arch_pacman*)
|
||||
|
||||
bash arch_yay.sh
|
||||
yay -S $(cat packages/*arch_yay*)
|
||||
|
||||
bash doas-sudo.sh arch
|
||||
# you can undo this with pacman -S sudo
|
||||
|
||||
elif [ $1 = "artix" ]; then
|
||||
sudo pacman -S $(cat packages/all packages/*artix_pacman*)
|
||||
|
||||
bash arch_yay.sh
|
||||
yay -S $(cat packages/*artix_yay*)
|
||||
|
||||
bash doas-sudo.sh arch
|
||||
# you can undo this with pacman -S sudo
|
||||
|
||||
elif [ $1 = "debian" ]; then
|
||||
|
||||
fi
|
||||
|
||||
bash dotfiles.sh
|
@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
which sh >/dev/null 2>&1 \
|
||||
|| exit 1
|
||||
|
||||
SH_LOCATION="$(which sh)"
|
||||
|
||||
[ -L "$SH_LOCATION" ] \
|
||||
|| exit 1
|
||||
|
||||
which dash >/dev/null 2>&1 \
|
||||
|| exit 1
|
||||
|
||||
unlink "$SH_LOCATION"
|
||||
|
||||
ln -s "$(which dash)" "$SH_LOCATION"
|
Loading…
Reference in New Issue
Block a user