Score:-2

Remap the tmux `C-b ]` paste clipboard shortcut key into another

ca flag

How is correct way to remap/re-bind the tmux C-b ] paste clipboard shortcut key into another key sequence shortcut ?

Score:1
vn flag

The tmux command you want to bind is paste-buffer. And you already know that the command to bind a key is bind-key (or bind).

Simply use the syntax bind-key key command to bind the paste-buffer command to another key than ] (still used together with prefix).

For example, if you want to bind this command to Prefix+½, add this to ~/.tmux.conf:

unbind ]
bind ½ paste-buffer

If you want to bind this command to Ctrl+½ (overriding the prefix key), add this to ~/.tmux.conf:

unbind ]
bind -n C-½ paste-buffer

The -n option adds the keybinding to the root table (ignoring the prefix key), and C- adds Ctrl as a modifier key.

Everything in this answer is documented in man tmux.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.