27 lines
582 B
Bash
Executable file
27 lines
582 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Copy configs and make a backup if it already exists
|
|
printf "\nInstalling Configs..."
|
|
cd configs
|
|
for file in *
|
|
do
|
|
printf "\n%s..." "$file"
|
|
cp -rb "$file" "$HOME"/.config/
|
|
done
|
|
|
|
# Copy scripts and make a backup if it already exists
|
|
printf "\n\nInstalling Scripts..."
|
|
cd ../
|
|
|
|
if [ ! -d "$HOME/.local/bin" ]; then
|
|
mkdir "$HOME/.local/bin"
|
|
fi
|
|
|
|
cp -rb bin "$HOME"/.local
|
|
|
|
# Link shell files and make a backup if it already exists
|
|
printf "\nLinking shell...\n"
|
|
cp -sb "$HOME"/.config/shell/profile ~/.zprofile
|
|
cp -sb "$HOME"/.config/x11/xinitrc ~/.xinitrc
|