Add better history sharing between shells