Inspiration from my buddy https://github.com/leeren/dotfiles
The recommended way of syncing these dotfiles is using GNU-stow.
For Debian-like distributions, you would thus sync with your home directory as follows:
sudo apt install stow
stow vim bash ctags
stow <packagename> # activates symlink
stow -n <packagename> # trial runs or simulates symlink generation. Effective for checking for errors
stow -D <packagename> # delete stowed package
stow -R <packagename> # restows package
For submodules, perform symlinks relative to where the submodule should be placed (i.e. in vim/.vim/pack/plugins/start
run ln -s ../../../../../submodules/submodule
).
git submodule add https://github.com/preservim/nerdtree submodules/nerdtree
git submodule update --remote
Sysmlink to scripts folder is created manually
ln -s $HOME/dotfiles/scripts ~/