archinstall/src/dotfiles.sh
2023-11-09 15:45:54 +01:00

14 lines
393 B
Bash

#!/bin/bash -ex
cd
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
echo -e "${BOLD}${GREEN}DONE. You need to reboot to apply the changes.${NORMAL}"