Remap the ctrl+b tmux prefix to ctrl+a
December 20, 2020 ‐ 1 min read
When coming from GNU screen the
ctrl+b tmux uses by default is somewhat hard to get used to. Besides that it isn't as nicely reachable as the
ctrl+a prefix used by GNU screen.
Adjusting this prefix takes a couple lines of configuration in the
~/.tmux.conf config file. Following the example in the tmux man pages, we make the following addition in the tmux config.
# ~/.tmux.conf unbind-key C-b set-option -g prefix C-a bind-key C-a send-prefix
A great resource for learning more about tmux are its man pages. You can read them online here or from the command-line using the following command:
$ man tmux
Or take a look at this book: