Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh : launch tmux in just one terminal



On 2021-10-01 04:34 PM, zzapper wrote:
On 01/10/2021 21:16, Ray Andrews wrote:
On 2021-10-01 10:43 a.m., Bart Schaefer wrote:

Just make it:  pgrep -u $USER tmux

If it's not too far off topic, what's the advantage of tmux over just a whole bunch of xterms?

One huge advantage is the ability to switch very quickly between different terminals. This is great when you have a lot of vim terminals open when you are doing development work. You can also group the different terminals into windows and the windows into sessions, offering an insane amount of organization. Organizing let's say 50 different shells is a breeze.

It's especially useful when you ssh into another machine. You run a tmux session on the remote machine. If you get disconnected or power your local machine down, you can log back in and be right back where you were. This can also be done locally with a plugin, tmux resurrect. So if your computer goes down, your terminals will be right there when you fire up tmux so you can jump back into working.

There's many more advantages, but these are the big ones.





Messages sorted by: Reverse Date, Date, Thread, Author