diff --git a/bin/omarchy-reinstall b/bin/omarchy-reinstall index 52c826ca..6051c310 100755 --- a/bin/omarchy-reinstall +++ b/bin/omarchy-reinstall @@ -10,19 +10,15 @@ fi echo -e "This will reinstall all the default Omarchy packages and reset all default configs.\nWarning: All changes to configs will be lost.\n" if gum confirm "Are you sure you want to reinstall and lose all config changes?"; then - echo "Resetting Omarchy repository" - git clone "https://github.com/basecamp/omarchy.git" ~/.local/share/omarchy-new >/dev/null - rm -rf $OMARCHY_PATH - mv ~/.local/share/omarchy-new $OMARCHY_PATH + echo "Reinstalling Omarchy Package" + sudo pacman -Syu --noconfirm --needed omarchy echo "Reinstalling missing Omarchy packages" mapfile -t packages < <(grep -v '^#' "$OMARCHY_PATH/install/omarchy-base.packages" | grep -v '^$') sudo pacman -Syu --noconfirm --needed "${packages[@]}" echo "Resetting all Omarchy configs" - cp -R ~/.local/share/omarchy/config/* ~/.config/ - cp ~/.local/share/omarchy/default/bashrc ~/.bashrc - echo '[[ -f ~/.bashrc ]] && . ~/.bashrc' | tee ~/.bash_profile >/dev/null + cp -R /etc/skel/.config/* ~/.config/ $(bash $OMARCHY_PATH/install/config/theme.sh) $(bash $OMARCHY_PATH/install/config/git.sh)