erden.blogg.se

Tmux windows
Tmux windows





When we want to return on working on our project we simple attach to session back. We just detach from this session and switch to another. So we open a session, we create different tabs, we rename them, start webserver, logs, whatever, then let's say you need to switch to other project completely. all sessions are hanging there until we destroy them. And this is the most awesome and mindblowing thing about Tmux. This means that even after we detached from frontend session it is still there. We can hit Ctrl + b + s which means show the list of sessions. We are directly inside backend session were we will call all our webservers related to backend.

tmux windows

This is exactly a way to split our project. After installing Tmux we can start a Tmux session. So problem #1 for us is that we have all projects mixed in our tabs and we don't have a way to split them. But what standard terminal can't do is switch between projects and store sessions in a comfortable way. And here you for sure want to say that your terminal like Iterm2 for example supports such stuff out of the box. This means that you get tabs and splits in your terminal. So what is Tmux? It's a terminal multiplexer.

tmux windows

In this video you will learn how to organise any amount of tabs in your terminal by using tmux. Which means you get 20+tabs in your terminal and you have no idea how to find the correct one and what to do. It may be that you need to simultaneously run 3-4 projects with 5 tabs each on your machine. Things get even worst if you work with a team on a big project.

tmux windows

Which means every single time when you work with project you open 5+ tabs in your terminal.

tmux windows

Even if you have a small project you need a backend web server, frontend web server, database, terminal, maybe some logs. As a web developer you need to start different web services in console.







Tmux windows