This repo is used to save and sync my dotfiles between different machines. When cloning and executing the scripts for the first time, the preexisting dotfiles are saved and replaced by symlinks to the ones in the repo.
The instructions below are a reminder on how to use the scripts.
On a new system clone the repo under ~/.dotfiles
git clone https://github.com:statox/dotfiles ~/.dotfilesWe have a post-merge git hook which updates nvim plugins if the lockfile of nvim plugins changed (lazy-lock.json when using lazy.nvim).
When cloning the repo set it up by running ./githooks/setup.sh
In ./scripts/files_list list the files and directories you want to simlink to home and keep under this repo. Not wanted files can be commented with #
Execute the script to setup the dotfiles.
./scripts/set-dotfiles.shThe files and directories in the $HOME directory are now symlinked to the files in ~/.dotfiles!
Original dotfiles aren't deleted they are copied under ~/.dotfiles/saved-dotfiles