.dotfiles/.config
2026-02-23 22:26:37 +02:00
..
copyq config 2026-02-23 22:20:58 +02:00
dunst config 2026-02-23 22:20:58 +02:00
fish config 2026-02-23 22:20:58 +02:00
lazygit config 2026-02-23 22:20:58 +02:00
nvim config 2026-02-23 22:20:58 +02:00
rofi config 2026-02-23 22:20:58 +02:00
solaar config 2026-02-23 22:20:58 +02:00
sway config 2026-02-23 22:24:16 +02:00
swaylock config 2026-02-23 22:20:58 +02:00
waybar config 2026-02-23 22:20:58 +02:00
wezterm config 2026-02-23 22:20:58 +02:00
yazi config 2026-02-23 22:20:58 +02:00
readme.txt config 2026-02-23 22:26:37 +02:00

# 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 remote add $REMOTE
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 && \
cfg checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} .config-backup/{}