fixed config alias

This commit is contained in:
Afonso Franco 2023-01-29 03:36:37 +00:00
parent 7aa072a15c
commit e56d368221
Signed by: afonso
GPG key ID: C459E0BB3DCEE899

View file

@ -1,5 +1,5 @@
git clone --bare https://gitea.olympuslab.net/afonso/dotfiles /home/afonso/dotfiles git clone --bare https://gitea.olympuslab.net/afonso/dotfiles /home/afonso/dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
mkdir -p .config-backup && \ mkdir -p .config-backup && \
config checkout 2>&1 | grep -E "\s+\." | awk {'print $1'} | \ config checkout 2>&1 | grep -E "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} .config-backup/{} xargs -I{} mv {} .config-backup/{}