如何滚动浏览 tmux 的命令历史记录?
Cb:为您提供 tmux 命令提示符。
有没有办法滚动浏览之前输入的命令?
向上箭头或 Ctrl p/n 似乎不起作用。
C-b: gives you tmux command prompt.
Is there a way to scroll through the commands entered on it previously?
Up arrow or Ctrl p/n don't seem to work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Up 和 Down 在默认 (Emacs) 模式下工作;但是,如果您设置了
vi-mode
,那么您将需要显式进入命令模式(通过在 tmux 的命令提示符处按 Escape 一次 - Ctrlb,:),或者您可以在.tmux.conf
中为这些命令创建按键绑定,从而消除需要更改模式:可以使用 Ctrlb、: 查看 Tmux 的默认绑定,然后输入
lsk -t vi-edit.在本例中,默认值是:
注意命令模式的
-ct
开关。Up and Down work in the default (Emacs) mode; if however, you have set
vi-mode
then you will need to either explicitly enter command mode (by pressing Escape once at tmux's command prompt—Ctrlb,:), or you can create keybinds for those commands in your.tmux.conf
, thereby removing the need to change modes:Tmux's default bindings can be seen with Ctrlb,: and then entering
lsk -t vi-edit
. The defaults are, in this case:Note the
-ct
switch for command mode.