update bash history in real time