Files
omarchycn/bin/omarchy-reinstall-configs
T

29 lines
725 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Reset all Omarchy user configs to the defaults
# omarchy:requires-sudo=true
set -e
# Overwrite all user configs with the Omarchy defaults.
if (( EUID == 0 )); then
echo "Error: This script should not be run as root"
exit 1
fi
echo "Resetting all Omarchy configs"
cp -R $OMARCHY_PATH/config/* ~/.config/
cp $OMARCHY_PATH/default/bashrc ~/.bashrc
echo '[[ -f ~/.bashrc ]] && . ~/.bashrc' | tee ~/.bash_profile >/dev/null
env OMARCHY_PATH="$OMARCHY_PATH" OMARCHY_INSTALL_MODE=online bash -c '
source "$OMARCHY_PATH/install/helpers/mode.sh"
detect_install_mode
source "$OMARCHY_PATH/install/config/theme-user.sh"
'
omarchy-refresh-limine
omarchy-refresh-plymouth
omarchy-nvim-setup