With dotfiler (https://github.com/svetlyak40wt/dotfiler):
git clone https://github.com/svetlyak40wt/dotfiler ~/.dots
# make sure automatically-written files aren't in source control
for dir in \
~/.config/{emacs,fish,zed}; do
set -x
if [[ -L $dir ]]; then
echo "rm $dir"
fi
mkdir -p $dir
set +x
done
python3 ~/.dots/bin/dot add git@github.com:rbutoi/dotfiles.git
python3 ~/.dots/bin/dot add git@gitlab.com:rbutoi/private-dots.git
python3 ~/.dots/bin/dot update