Iterm2 在 ssh 会话中保存命令历史

Iterm2 saving command history in ssh session

Toobelt-Command History

使用Toobelt-Command History时,如何在ssh中记录历史命令?我只能看到本地历史命令。

您需要在要连接到的机器上安装 shell integration。然后您将拥有该机器的命令历史记录。

curl -L https://iterm2.com/misc/install_shell_integration.sh | bash