On tmux, what is the difference between "bind" and "bind-key"?

58

8

On .tmux.conf, what is the difference between "bind" and "bind-key"?

fkreusch

Posted 2013-04-12T12:49:00.927

Reputation: 683

Answers

63

"bind" is an alias for "bind-key", they have the same effect.
Also you can shorten commands as long as there is only one command that starts with the letters you write, so for instance "bind-k" or "bin" would work as well.

From the man page:

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.

edorf

Posted 2013-04-12T12:49:00.927

Reputation: 746