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..."
|
2024-01-10 00:21:14 -05:00
|
|
|
cd configs
|
|
|
|
for file in *
|
2024-01-09 20:38:24 -05:00
|
|
|
do
|
|
|
|
printf "\n%s..." "$file"
|
2024-01-10 00:21:14 -05:00
|
|
|
cp -rb "$file" "$HOME"/.config/
|
2024-01-09 20:38:24 -05:00
|
|
|
done
|
2024-01-03 02:32:33 -05:00
|
|
|
|
|
|
|
# Copy scripts and make a backup if it already exists
|
2024-01-10 00:21:14 -05:00
|
|
|
printf "\n\nInstalling Scripts..."
|
|
|
|
cd ../
|
2024-01-03 02:32:33 -05:00
|
|
|
|
|
|
|
if [ ! -d "$HOME/.local/bin" ]; then
|
2024-01-25 02:04:35 -05:00
|
|
|
mkdir -p "$HOME/.local/bin"
|
2024-01-03 02:32:33 -05:00
|
|
|
fi
|
|
|
|
|
2024-01-10 00:21:14 -05:00
|
|
|
cp -rb bin "$HOME"/.local
|
2024-01-03 02:32:33 -05:00
|
|
|
|
|
|
|
# Link shell files and make a backup if it already exists
|
2024-01-10 00:21:14 -05:00
|
|
|
printf "\nLinking shell...\n"
|
|
|
|
cp -sb "$HOME"/.config/shell/profile ~/.zprofile
|
|
|
|
cp -sb "$HOME"/.config/x11/xinitrc ~/.xinitrc
|