bevry / dorothy

🧙🏻‍♀️ Bring your dotfile commands and configuration to any shell. Sensible defaults and hundreds of commands preloaded. Supports Bash, Zsh, Fish, Nu, Xonsh, Elvish, Dash, KornShell, macOS, Linux, Windows.
Other
277 stars 21 forks source link

Suggestion: `dorothy revert` #184

Closed balupton closed 8 months ago

balupton commented 8 months ago

In case an update goes bad, we should offer a revert command to go back to the commit before the update, with confirm for their core and user repos.

this would require saving the commit info into the xdg state dir when running dorothy update

balupton commented 8 months ago

Actually, as the upgrade may have broken everything, having a dorothy revert may not work as it is broken. The best thing to do is to have the update output the prior to new commit, and it already does that. Furthermore I now dev on branches first, make sure everything works, then push to master.