Move from permission setup to .bak process

Means less interaction for folks just riding on the default train
without overwriting the work of people who've made changes.
This commit is contained in:
David Heinemeier Hansson committed 2025-07-20 21:07:59 -05:00
1 parent 1f1660f5e4
commit 3634235eee
3 files changed
+35 -9

No files matched your search

+7 -2
View File
@@ -1,5 +1,10 @@
#!/bin/bash
if [[ "$1" == "-y" ]] || gum confirm "Refresh Walker config? This will replace your current settings with Omarchy defaults."; then
cp -f ~/.local/share/omarchy/config/walker/config.toml ~/.config/walker/ 2>/dev/null
cp -f ~/.config/walker/config.toml ~/.config/walker/config.toml.bak 2>/dev/null
cp -f ~/.local/share/omarchy/config/walker/config.toml ~/.config/walker/ 2>/dev/null
if cmp -s ~/.config/walker/config.toml.bak ~/.config/walker/config.toml; then
rm ~/.config/walker/config.toml.bak
else
echo -e "\e[31mExisting .config/walker/config.toml replaced with new Omarchy default, but a .bak file was made.\e[0m"
fi