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

8 lines
378 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
2023-01-29 03:36:37 +00:00
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
2023-01-29 02:32:19 +00:00
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