Move ~/.dotfiles to $XDG_DATA_HOME/dotfiles
This commit is contained in:
parent
13b8724696
commit
71baf34d58
4 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue