mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Update reinstall
This commit is contained in:
@@ -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"
|
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
|
if gum confirm "Are you sure you want to reinstall and lose all config changes?"; then
|
||||||
echo "Resetting Omarchy repository"
|
echo "Reinstalling Omarchy Package"
|
||||||
git clone "https://github.com/basecamp/omarchy.git" ~/.local/share/omarchy-new >/dev/null
|
sudo pacman -Syu --noconfirm --needed omarchy
|
||||||
rm -rf $OMARCHY_PATH
|
|
||||||
mv ~/.local/share/omarchy-new $OMARCHY_PATH
|
|
||||||
|
|
||||||
echo "Reinstalling missing Omarchy packages"
|
echo "Reinstalling missing Omarchy packages"
|
||||||
mapfile -t packages < <(grep -v '^#' "$OMARCHY_PATH/install/omarchy-base.packages" | grep -v '^$')
|
mapfile -t packages < <(grep -v '^#' "$OMARCHY_PATH/install/omarchy-base.packages" | grep -v '^$')
|
||||||
sudo pacman -Syu --noconfirm --needed "${packages[@]}"
|
sudo pacman -Syu --noconfirm --needed "${packages[@]}"
|
||||||
|
|
||||||
echo "Resetting all Omarchy configs"
|
echo "Resetting all Omarchy configs"
|
||||||
cp -R ~/.local/share/omarchy/config/* ~/.config/
|
cp -R /etc/skel/.config/* ~/.config/
|
||||||
cp ~/.local/share/omarchy/default/bashrc ~/.bashrc
|
|
||||||
echo '[[ -f ~/.bashrc ]] && . ~/.bashrc' | tee ~/.bash_profile >/dev/null
|
|
||||||
|
|
||||||
$(bash $OMARCHY_PATH/install/config/theme.sh)
|
$(bash $OMARCHY_PATH/install/config/theme.sh)
|
||||||
$(bash $OMARCHY_PATH/install/config/git.sh)
|
$(bash $OMARCHY_PATH/install/config/git.sh)
|
||||||
|
|||||||
Reference in New Issue
Block a user