Y
Hacker News
new
|
ask
|
show
|
jobs
by
thomasballinger
3113 days ago
Here's an idea that I like (so much that I wrote an implementation): use LD_PRELOAD to swap out readline with version that forks on each input. Kill the forked child process and you have undo!
https://github.com/thomasballinger/rlundo
post:
http://ballingt.com/interactive-interpreter-undo/#hacking-fo...