Reload the tmux config
April 3, 2020 ‐ 1 min read
Testing out settings in your tmux.conf file would be a pain if you had to kill and restart tmux each time.
You see the changes you made by sourcing
~/.tmux.conf. To source the fie you need to be in command mode. To start the command mode use
<prefix> :. Now type in
:source-file ~/.tmux.conf and hit enter. This should affect all your tmux sessions. Restarting the tmux server shouldn't be necessary.
Reload config with key binding
If you do this frequently you might want to bind the
source-file command to a key combination.
By adding the following binding to the
~/.tmux.conf file you can reload the configuration with
bind r source-file ~/.tmux.conf; display-message "Reloaded config"