在 tmux 上,“bind”和“bind-key”有什么区别?

fkr*_*sch 72 tmux

在 .tmux.conf 上,“bind”和“bind-key”有什么区别?

小智 79

“bind”是“bind-key”的别名,它们的作用是一样的。
您也可以缩短命令,只要只有一个以您写的字母开头的命令,例如“bind-k”或“bin”也可以。

从手册页:

bind-key [-cnr] [-t key-table] key command [arguments]
                    (alias: bind)

(...)

 Most commands have a shorter form, known as an alias.  For new-session,
 this is new:

       $ tmux new vi

 Alternatively, the shortest unambiguous form of a command is accepted.
Run Code Online (Sandbox Code Playgroud)