1、首先,点击菜单中的preferences选项
2、点击command history选项
3、勾选上save exit commands选项
4、勾选上save exit commands选项之后,点击ok按钮