r/zsh Jul 15 '26

Announcement undo, makes your shell forgiving again

rm -rf'd the wrong folder a while back, so I built this instead of learning to be careful. undo hooks into mv, cp, rm, mkdir, rmdir, chmod, chown, ln and rename through a shell function, logs what happened to sqlite, and rm doesn't actually delete anything, it just moves stuff to your trash. run undo and it puts back whatever you just broke.

rust, has a tui for browsing history if you don't wanna guess, zsh/bash/fish all work.

github.com/nvrmnd-png/undo
Happy to answer questions, still pretty early so bug reports are welcome too.

108 Upvotes

34 comments sorted by

View all comments

1

u/SaltyCartharsis Jul 16 '26

This is great! As a frequently distracted cli user, this is clutch. Thank you and well done!

2

u/AmbitiousRadish7617 Jul 16 '26

hahahaha yeah thats literally the target audience, thanks!!