Use existing mechanism
This commit is contained in:
@@ -3,15 +3,4 @@
|
|||||||
# omarchy:summary=Reset shell.json to Omarchy defaults
|
# omarchy:summary=Reset shell.json to Omarchy defaults
|
||||||
# omarchy:examples=omarchy refresh shell
|
# omarchy:examples=omarchy refresh shell
|
||||||
|
|
||||||
set -e
|
omarchy-refresh-config omarchy/shell.json
|
||||||
|
|
||||||
USER_CONFIG="$HOME/.config/omarchy/shell.json"
|
|
||||||
|
|
||||||
# Removing the user file lets the running shell fall back to shell-defaults.json
|
|
||||||
# via its FileView watcher. The next shell start will also use the defaults.
|
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user