Install GNU Stow:
sudo pacman -S stow
Clone the repository:
mkdir -p ~/.mydotfiles
cd ~/.mydotfiles
git clone --depth 1 https://github.com/xonorhc/mydotfiles.git
Create symlinks:
cd ~/.mydotfiles
stow --verbose --target=$HOME --dir=$HOME/.mydotfiles/dotfiles --restow .
Restart your system.
Remove all symlinks:
cd ~/.mydotfiles
stow --verbose --target=$HOME --delete .
Learned/Copied a lot from these projects: