Fix bash history for tabs