Increase your productivity with Tmux

Jul. 12, 2020

Tmux is terminal mulitplier. This has been one of the most satisfying tools that I have used. The learning curve is there, but the reward of using it almost always pays off.

First we need to under the need to organize the terminal. And the downside of running mulitiple terminal windows. Once we know why we must use tmux, we can get into how to get started with:

P.S I also recommend people using oh-my-zsh and setting up the dotenv files. More on this later.

  1. tmux session Tmux session can table mulitple windows and each windows can have mulitple tab. You can attach and detach the tmux session. When you detach a session it goes to the background. This gives us the leverage run process with logs in the background for ever. I have read somewhere on twitter that the somepeople have seen same tmux sessions running entire time with that company. Although not recommend to use tmux for production and go with traditional service daemons. But I have no problems with tmux session ever.

After you have attached the tmux session comes the part of spliting the tmux session

  1. horizontal vs vertical split prefix + " –> horizontal split prefix + % –> vertical split

  2. New window prefix + c –> create a window

  3. Toggle fullscreen a specific tab prefix + Z

  4. move to next window prefix + n

  5. move to next tab prefix + arrow