Better Programming

Advice for programmers.

Member-only story

How to Use tmuxp to Manage Your tmux Session

Amine Elhattami
Better Programming
Published in
5 min readNov 12, 2021

--

Photo by Jorge Ramirez on Unsplash

As a programmer, pretty much every workday starts by setting up my dev environment for the specific task I’m working on.

During this time, I will spend a couple of minutes setting up my tmux windows and panes, and every time, I say to myself that there is no need to have something automated since it does not take too much time. However, it becomes grueling when I switch back and forward between tasks requiring different layouts.

At first, I tried using some basic scripts but shortly failed to maintain them since it took considerable effort to update. Then, I found tmuxp. I have been using it for some time now, and I’m ready to share my experience.

So if you are like me and you like having a specific layout for every task, and you want to spend the least amount of time managing the configurations, then this post is definitely for you.

Setup

First, make sure that you have tmux 1.8 or above and python 2.6 or above installed. Then, install tmuxp using the following:

# For macOs
$ brew install tmuxp
# Using pip (python package manager)
$ pip install --user tmuxp

--

--

Amine Elhattami
Amine Elhattami

Written by Amine Elhattami

NLP Research Developer @ServiceNow Research — Ph.D. Student @Mila. Opinions are my own. Support my work: https://amine-elhattami.medium.com/membership

No responses yet