8 lines
374 B
Bash
8 lines
374 B
Bash
|
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
|