21 lines
588 B
Bash
Executable File
21 lines
588 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Reset shell.json to Omarchy defaults
|
|
# omarchy:examples=omarchy refresh bar
|
|
|
|
set -e
|
|
|
|
USER_CONFIG="$HOME/.config/omarchy/shell.json"
|
|
|
|
# Removing the user file lets the shell fall back to shell-defaults.json on
|
|
# its next reload. omarchy-restart-bar (which is now an alias for restarting
|
|
# omarchy-shell) reloads the shell so the change takes effect immediately.
|
|
if [[ -f $USER_CONFIG ]]; then
|
|
backup="$USER_CONFIG.bak.$(date +%s)"
|
|
cp "$USER_CONFIG" "$backup"
|
|
echo "Backed up user shell config to $backup"
|
|
rm -f "$USER_CONFIG"
|
|
fi
|
|
|
|
omarchy-restart-bar
|