Doors/scripts/copy_and_link

26 lines
589 B
Text
Raw Normal View History

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