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 the tmux configuration.
Creating a Shortcut to Reload the Configuration
Every time you make a change to your configuration file, you either have to shut down all sessions and then restart tmux, or issue the source command to reload your configuration from within the running instances. Let’s create a custom ...
Get tmux 2 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.