arch-config/3-post-reboot/pull-config.sh
2023-01-29 03:36:37 +00:00

7 lines
378 B
Bash
Executable file

git clone --bare https://gitea.olympuslab.net/afonso/dotfiles /home/afonso/dotfiles
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --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