Unbinding keys

Now let's say there is a key binding that you want to remove for some reason. This is very easy; just add an unbind directive to your .tmux.conf file.

Say we wanted to unbind 0 from its default action of selecting window 0 for some reason. To do this, simply add the following code snippet to your configuration:

unbind 0

Note that there is no need to explicitly unbind a key before binding it to something else; every key can only have one binding. So, we find it rather rare to use this bit of utility, but it's nice to know it's there when you need it.

Get Getting Started with tmux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.