archinstall/modules/chroot/user/20-dotfiles.sh
2024-05-25 15:59:32 +02:00

12 lines
403 B
Bash

#!/bin/bash
#shellcheck disable=SC2154
config=(git --git-dir "$HOME/.dotfiles" --work-tree "$HOME")
repo='https://git.maby.dev/ange/.dotfiles.git'
git clone --bare "$repo" "$HOME/.dotfiles"
"${config[@]}" checkout -f
"${config[@]}" submodule update --init --recursive --remote
"${config[@]}" config status.showUntrackedFiles no
"${config[@]}" remote set-url origin git@git.maby.dev:ange/.dotfiles.git