更新时间:2022-06-09 08:27:45
类似
fc -ln -1
应该工作。这就是说,你很可能运行到并发访问的问题(阅读:多壳覆盖彼此的历史),你可能无法用手做得更好
should work. That said, you're probably running into concurrent access issues (read: multiple shells overwriting each others' history) and you may not be able to do any better by hand.