pat*_*lea 7 linux history tmux
tmux是否支持将命令保存到"Cb:"模式中的命令?我宁愿浏览一下我已经输入的内容,而不是在手册页中查看每个命令.
有history-file选项可以满足您的需求.
历史文件路径
如果不为空,则tmux将在退出时写入命令提示历史记录并从启动时加载它的文件.
将此添加到您的 .tmux.conf
set -g history-file ~/.tmux_history
Run Code Online (Sandbox Code Playgroud)
请注意,它是在2.1版本中添加的.如果你有旧版本的tmux,请阅读 https://unix.stackexchange.com/questions/26548/write-all-tmux-scrollback-to-a-file
| 归档时间: |
|
| 查看次数: |
4179 次 |
| 最近记录: |