Skip to content

statox/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

920 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

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.

Installation

Clone the repo

On a new system clone the repo under ~/.dotfiles

git clone https://github.com:statox/dotfiles ~/.dotfiles

Configure the git hooks

We 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

Select which files to manage

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

Execute the script to setup the dotfiles.

./scripts/set-dotfiles.sh

And voila

The 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

About

saving and syncing dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors