Over time, the number of process dependencies you need to get a job done increases. Tmux is great for long-term running processes and local development.ĭon't you want to learn how to do that too? The best part? I can "attach" them at any time. I can "detach" them and they will still continue running in the background. Tmux allows me to create any number of terminals from a single screen and group them. When I'm done, I'll leave node_project and revisit rails_project. If I need to do node tasks, I'll leave rails_project and visit node_project session. Imagine this: I can contain all my rails processes inside a session named "rails_project" and all my node processes in a session named "node_project". This also causes a grinding halt to your workflow. When you start mixing tabs from completely unrelated tasks without clear boundaries, you can't tell which tab is for what. At some point, you'll start asking, "which of these 6 tabs did I just run the jest test?" or "which of these two Vim tabs was my rails codebase?". Although that would work, this could cause tab chaos. To be fair, you could argue that you could just open more tabs for node tasks instead of killing the previous rails processes. What if instead of killing those rails-related processes, you can "put them aside" (while they're still running), run whatever processes you need to complete your node task, then return to your original rails-project task as if you never left? That would be nice, wouldn't it? Tmux lets you do just that! This context switch causes a grinding halt in your flow. Without tmux, I would probably stop the rails server, close vim, and exit the mysql server before starting the node-project task. Then someone asks you to debug a completely different node project. For example, suppose that you are running a rails server, vim editor, and a mysql console in the middle of a rails workflow. Before you get perPLEXed by the phrase Terminal MUltipleXer, I'll explain what it means.Ī terminal multiplexer lets you to leave a terminal in the middle of a process and return to it seamlessly. Once you started using Tmux, you will ask yourself why you have not used it until now.Īccording to man tmux, Tmux stands for "Terminal MUltipleXer".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |