Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对使用 iterm2 的 bash 历史感到非常困惑。例如,如果我打开一个终端窗口,然后按 command-n,我会得到一个新终端,其中包含 500 个命令的预填充 bash 历史记录。这些命令都不是来自我之前打开的终端。我的 .bash_profile 文件不包含任何修改历史的命令。
有人可以为我详细说明 iterm2 从哪里获取它的 bash 历史记录,以及为什么不同的终端会有所不同?