arch-config/3-post-reboot/pull-config.sh

8 lines
374 B
Bash
Raw Normal View History

2023-01-29 02:32:19 +00:00
git clone --bare https://gitea.olympuslab.net/afonso/dotfiles /home/afonso/dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
mkdir -p .config-backup && \
config checkout 2>&1 | grep -E "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} .config-backup/{}
config checkout
config remote set-url origin ssh://git@gitea.olympuslab.net:522/afonso/dotfiles