Move ~/.dotfiles to $XDG_DATA_HOME/dotfiles

This commit is contained in:
Alexander Hess 2023-04-10 17:46:20 +02:00
commit 71baf34d58
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
4 changed files with 11 additions and 11 deletions

View file

@ -13,9 +13,9 @@ _command_exists() {
cd $HOME
# Get the latest ~/.dotfiles, possibly replacing the old ones
rm -rf "$HOME/.dotfiles" >/dev/null
git clone --bare https://code.webartifex.biz/alexander/dotfiles.git "$HOME/.dotfiles"
# Get the latest $XDG_DATA_HOME/dotfiles, possibly replacing the old ones
rm -rf "$XDG_DATA_HOME/dotfiles" >/dev/null
git clone --bare https://code.webartifex.biz/alexander/dotfiles.git "$XDG_DATA_HOME/dotfiles"
# Distribute the dotfiles in $HOME
git --git-dir=$XDG_DATA_HOME/dotfiles/ --work-tree=$HOME checkout --force