My tmux configuration

Vignesh MVignesh M
2 min read

I’ve been using tmux from a very long time from my Ubuntu days. Today I just read Neil’s notes about his tmux experiment, I wanted to share this file with him and chat about tmux and his current terminal experimentations. But looks like he wants to be a hard man to find, there is no contact info available on his website. So I thought why not just post my config file on the internet.

If you haven’t heard about tmux, it is a terminal program that allows complex terminal usage patterns. You can run multiple panes, windows, programs within one actual terminal window in your OS. Their home page might be able to put it in better words than me.

I actually stared using it for working inside ssh instances on flaky internet. It is practically a non-existent problem for me today, we’re all doing cloud. But there were times when I used to ssh into the server directly and edit files there or set things up manually. If your connection dropped, you have to start again. Tmux will let you to reattach yourself again to resume whatever you were doing.

Today I’m using it more of a multi pane, window terminal and not much for the SSH thing. It is a great tool if you started using it and setup a correct configuration for yourself. I attached my current config below, it usually resides at ~/.tmux.conf.

I like the setup for switching the panes with vim style key bindings and the pane splitting with the keys which makes it easier to reason about the split. Another great feature is you can just use prefix+z to just make one pane take fullscreen temporarily if you want to focus on that alone while rest of the panes keep running in the background.

This is simple config but gives me a lot of mileage and this stayed mostly unchanged after initial setup. Give it a try yourself and see if tmux helps your mode of working as well.

0
Subscribe to my newsletter

Read articles from Vignesh M directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Vignesh M
Vignesh M