Customizing Keys, Commands, and User Input

Many of the default keyboard shortcuts in tmux are a bit of a stretch, both physically and mentally. Not only is Prefix % hard to press, as it involves holding three keys, but without looking at the command reference, there’s no easy way to remember what it does.

In this section, we’ll define, or redefine, some of the most-used tmux commands. Let’s start by creating a custom keybinding to reload our tmux configuration.

Creating a Shortcut to Reload the Configuration

Every time we make a change to our configuration file, we either have to shut down all sessions and then restart tmux, or issue a command to reload our configuration from within the running instances. Let’s create a custom keybinding ...

Get 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.