Hacker News new | ask | show | jobs
by chainsaw10 3092 days ago
You can do something similar with bash. If you set PROMPT_COMMAND='history -a', it'll append to the history file right after the command completes (because the prompt command is run as the prompt is printed).
1 comments

thanks, i'm sure you've just saved a couple hours for a future me :)