From c4ef6ac13ed9566225750050f0a7286f849cf84c Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Wed, 6 Nov 2024 17:43:24 +0000 Subject: Updated for FreeBSD --- posts/dotfiles.md | 143 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 117 insertions(+), 26 deletions(-) (limited to 'posts/dotfiles.md') diff --git a/posts/dotfiles.md b/posts/dotfiles.md index 9bb84f8..b6c9fd0 100644 --- a/posts/dotfiles.md +++ b/posts/dotfiles.md @@ -1,27 +1,118 @@ -# How I store my dotfiles. - -I use a bare repository to sync my dotfiles and set it up as follows: - -``` -git init --bare $HOME/.cfg -alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' -config config --local status.showUntrackedFiles no - -# The add and commit below are just an example of adding a file to the repo -config add .config/nvim/init.lua -config commit -m "Added init.lua" - -git remote add origin REMOTE_URL -git push origin master -``` - -To install them from mine or someone else's git repo do the following: - -``` -echo ".cfg" >> .gitignore -git clone --bare REMOTE-GIT-REPO-URL $HOME/.cfg -alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' -config config --local status.showUntrackedFiles no -config checkout -``` + + + + + + Justine Smithies blog - No Title + + + + + +
+ +
+
+
+ + + -- cgit v1.2.3