Published on

Reload Tmux Config using tmux source-file

Reload Tmux Config using tmux source-file

Tmux is one of the most useful tool when it comes to using using a linux terminal.

Tmux is a terminal multiplexer, it allows a user to access multiple terminals (or windows), each running a separate program, while providing a single screen to work on. Tmux is useful for running more than one command-line program at the same time, increasing productivity and the way you work.

Tmux is one of the "terminal multiplexer", it enables a number of terminals (or windows) to be accessed and controlled from a single terminal. It allows you to create a session on a remote box, run applications in that remote session, "detach" from the session, and re-"attach" when desired. It also has advanced features such as multiple windows and split views. Using tmux is recommend when running an interactive CLI program remotely. If you get disconnected from your session, you can re-attach as though nothing happened.

Let's say you have made changes to tmux.conf file by adding or changing default config, you have to reload the config so that the changes reflects in your terminal. The command to reload config is called source-file.

You have to reload tmux.conf so that it reflects-

tmux source-file ~/.tmux.conf

If you are inside a tmux session, you can run the command inside the tmux session to source the config file.-

source-file ~/.tmux.conf

I hope you found this article useful, glad that you found it easy to reload or source config in Tmux.