2024-01-03 02:32:33 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-01-07 02:24:12 -05:00
|
|
|
set -e
|
|
|
|
|
2024-01-03 02:32:33 -05:00
|
|
|
# Copy configs and make a backup if it already exists
|
2024-01-09 20:38:24 -05:00
|
|
|
printf "\nInstalling Configs..."
|
|
|
|
for file in configs/*
|
|
|
|
do
|
|
|
|
printf "\n%s..." "$file"
|
|
|
|
cp -rbv "$file" "$HOME"/.config/
|
|
|
|
done
|
2024-01-03 02:32:33 -05:00
|
|
|
|
|
|
|
# Copy scripts and make a backup if it already exists
|
2024-01-09 20:38:24 -05:00
|
|
|
printf "\nInstalling Scripts..."
|
2024-01-03 02:32:33 -05:00
|
|
|
|
|
|
|
if [ ! -d "$HOME/.local/bin" ]; then
|
|
|
|
mkdir "$HOME/.local/bin"
|
|
|
|
fi
|
|
|
|
|
2024-01-09 20:38:24 -05:00
|
|
|
cp -rbv bin "$HOME"/.local
|
2024-01-03 02:32:33 -05:00
|
|
|
|
|
|
|
# Link shell files and make a backup if it already exists
|
2024-01-09 20:38:24 -05:00
|
|
|
printf "\nLinking shell..."
|
|
|
|
cp -sbv "$HOME"/.config/shell/profile ~/.zprofile
|
|
|
|
cp -sbv "$HOME"/.config/x11/xinitrc ~/.xinitrc
|