From 553cf81d6c3dd155be29cb98c54bb5fb50e10b96 Mon Sep 17 00:00:00 2001 From: Greg Date: Mon, 23 Feb 2026 22:24:55 +0200 Subject: [PATCH] config --- .config/readme.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .config/readme.txt diff --git a/.config/readme.txt b/.config/readme.txt new file mode 100644 index 0000000..46b146a --- /dev/null +++ b/.config/readme.txt @@ -0,0 +1,30 @@ +# Setup + +git init --bare $HOME/.cfgstore +alias cfg='/usr/bin/git --git-dir=$HOME/.cfgstore/ --work-tree=$HOME' +cfg config --local status.showUntrackedFiles no +funcsave cfg + + +# Use + +cfg add ~/.config/kitty +cfg commit -m "add kitty config" +cfg push + + +# Restore (on new machine) + +alias cfg='/usr/bin/git --git-dir=$HOME/.cfgstore/ --work-tree=$HOME' +funcsave cfg +git clone --bare git@github.com:fotonmoton/.dotfiles.git $HOME/.cfgstore +echo ".cfgstore" >> .gitignore +cfg config --local status.showUntrackedFiles no +cfg checkout + + +# Conflict resolution + +mkdir -p .config-backup && \ +config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \ +xargs -I{} mv {} .config-backup/{}