Create auto install script for *nix systems

Fix execute permission on shell scripts

Signed-off-by: Cynthia Foxwell <gamers@riseup.net>
This commit is contained in:
adryd 2022-04-03 22:35:24 -04:00 committed by Cynthia Foxwell
parent 3fed5bc4eb
commit 422db7b293
3 changed files with 48 additions and 0 deletions

0
linux/.local/bin/binaryclock.sh Normal file → Executable file
View file

0
linux/.local/bin/polybar.sh Normal file → Executable file
View file

48
linux/install.sh Executable file
View file

@ -0,0 +1,48 @@
#!/usr/bin/env bash
set -eux
cd "$(dirname "$0")" || exit $?
echo "Installing .Xresources"
cp -f "${PWD}/.Xresources" "${HOME}/.Xresources"
echo "Installing scripts to .local/bin"
cp -f "${PWD}"/.local/bin/* "${HOME}/.local/bin"
echo "Installing bspwm config"
mkdir -p "${HOME}/.config/bspwm"
cp -f "${PWD}/.config/bspwm/bspwmrc" "${HOME}/.config/bspwm/bspwmrc"
echo "Installing polybar config"
mkdir -p "${HOME}/.config/polybar/scripts"
cp -f "${PWD}/.config/polybar/config" "${HOME}/.config/polybar/config"
cp -rf "${PWD}"/.config/polybar/scripts/* "${HOME}/.config/polybar/scripts/"
echo "Installing rofi"
mkdir -p "${HOME}/.config/rofi"
cp -f "${PWD}"/.config/rofi/* "${HOME}/.config/rofi/"
echo "Installing sxhkdrc config"
mkdir -p "${HOME}/.config/sxhkd"
cp -f "${PWD}/.config/sxhkd/sxhkdrc" "${HOME}/.config/sxhkd/sxhkdrc"
# Common
cd ../common
echo "Installing alacritty config"
cp -rf "${PWD}/alacritty" "${HOME}/.config/alacritty"
echo "Installing neovim config"
cp -rf "${PWD}/nvim" "${HOME}/.config/nvim"
echo "Installing eslint configs"
cp -f "${PWD}/.eslintignore" "${HOME}/.eslintignore"
cp -f "${PWD}/.eslintrc.js" "${HOME}/.eslintrc.js"
echo "Installing .prettierrc"
cp -f "${PWD}/.prettierrc" "${HOME}/.prettierrc"
echo "Installing .XCompose"
cp -f "${PWD}/.XCompose" "${HOME}/.XCompose"
echo "Installing .zshrc"
cp -f "${PWD}/.zshrc" "${HOME}/.zshrc"