Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
chainsaw10
· 8y ago · 0 comments
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).
Comments
[–]
baq
8y ago
thanks, i'm sure you've just saved a couple hours for a future me :)