More work on provisioning scripts

This commit is contained in:
Daniel Flanagan 2021-03-22 11:09:02 -05:00
parent 7e587eb40f
commit a0848f4113
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
5 changed files with 18 additions and 11 deletions

View File

@ -10,4 +10,4 @@ docker pull archlinux -q || begin
exit 1 exit 1
end end
docker run -it --rm -v $DOTFILES_PATH:/dotfiles:ro archlinux sh -c "/dotfiles/os/linux/arch/provision.sh" docker run -it --rm -v $DOTFILES_PATH:/dotfiles:ro archlinux sh -c "/dotfiles/os/linux/arch/provision.sh && fish"

View File

@ -1,12 +1,12 @@
#!/usr/bin/env bash #!/usr/bin/env bash
echo $USER echo "Installing yay as $(whoami)"
REPOSITORY_PATH="/tmp/provisioning" REPOSITORY_PATH="/tmp/provisioning"
sudo pacman -S --needed --noconfirm git base-devel sudo pacman -S --needed --noconfirm git base-devel
mkdir -p "$REPOSITORY_PATH" mkdir -p "$REPOSITORY_PATH"
rm -rf "$REPOSITORY_PATH/yay" rm -rf "$REPOSITORY_PATH/yay"
git clone https://aur.archlinux.org/yay.git "$REPOSITORY_PATH/yay" git clone https://aur.archlinux.org/yay-bin.git "$REPOSITORY_PATH/yay"
cd "$REPOSITORY_PATH/yay" cd "$REPOSITORY_PATH/yay" || exit 1
makepkg --noconfirm -si makepkg --noconfirm -si
yay -S --noconfirm yay yay -S --noconfirm yay-bin
rm -rf "$REPOSITORY_PATH/yay" rm -rf "$REPOSITORY_PATH/yay"

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if egrep -q '^\[multilib\]$' /etc/pacman.conf; then if grep -E -q '^\[multilib\]$' /etc/pacman.conf; then
echo "Multilib Repository Already Enabled!" echo "Multilib Repository Already Enabled!"
else else
echo "Enabling Multilib Repository (with sudo)..." echo "Enabling Multilib Repository (with sudo)..."

View File

@ -1,14 +1,19 @@
#!/usr/bin/env bash #!/usr/bin/env bash
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
mkdir -p "$XDG_CONFIG_HOME/systemd/user" mkdir -p "$XDG_CONFIG_HOME/systemd/user"
[ ! -d "$XDG_CONFIG_HOME/tmux/plugins/tpm" ] && \ [ ! -d "$XDG_CONFIG_HOME/tmux/plugins/tpm" ] && \
git clone https://github.com/tmux-plugins/tpm "$XDG_CONFIG_HOME/tmux/plugins/tpm" git clone https://github.com/tmux-plugins/tpm "$XDG_CONFIG_HOME/tmux/plugins/tpm"
tmux source-file "$HOME/.tmux.conf" echo "Reloading tmux config..."
tmux source-file "$HOME/.tmux.conf" &>/dev/null
bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/clean_plugins" echo "Installing tmux plugins..."
bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/install_plugins" bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/clean_plugins" &>/dev/null
bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/update_plugins" bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/install_plugins" &>/dev/null
bash "$XDG_CONFIG_HOME/tmux/plugins/tpm/bindings/update_plugins" &>/dev/null
tmux source-file "$HOME/.tmux.conf" echo "Finalizing tmux plugin installation..."
tmux source-file "$HOME/.tmux.conf" &>/dev/null

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
test -d /boot/loader/entries || { echo "no known bootloader"; exit 1; }
inject_red="vt.default_red=0x11,0xf9,0xa6,0xf4,0x66,0xae,0xa1,0xf8,0x75,0xf9,0xa6,0xf4,0x66,0xae,0xa1,0xf9" inject_red="vt.default_red=0x11,0xf9,0xa6,0xf4,0x66,0xae,0xa1,0xf8,0x75,0xf9,0xa6,0xf4,0x66,0xae,0xa1,0xf9"
inject_green="vt.default_grn=0x11,0x26,0xe2,0xbf,0xd9,0x81,0xef,0xf8,0x71,0x26,0xe2,0xbf,0xd9,0x81,0xef,0xf8" inject_green="vt.default_grn=0x11,0x26,0xe2,0xbf,0xd9,0x81,0xef,0xf8,0x71,0x26,0xe2,0xbf,0xd9,0x81,0xef,0xf8"
inject_blue="vt.default_blu=0x11,0x72,0x2e,0x75,0xef,0xff,0xe4,0xf2,0x5e,0x72,0x2e,0x75,0xef,0xff,0xe4,0xf5" inject_blue="vt.default_blu=0x11,0x72,0x2e,0x75,0xef,0xff,0xe4,0xf2,0x5e,0x72,0x2e,0x75,0xef,0xff,0xe4,0xf5"