News for hackers. Stuff that matters.
Re:A Quick and Easy Guide to Tmux by tony on Thursday October 27, 2022 @09:38PM (#33366463)
Good article. This was 2015 (!)

A few years later, I released The Tao of tmux, available for free online: https://leanpub.com/the-tao-of-tmux/read.

Random: this is a lean, cross-platform program I've used in the status line for ages: https://github.com/thewtex/tmux-mem-cpu-load

tmux has been getting steady updates throughout the years: https://github.com/tmux/tmux/blob/master/CHANGES.

It's nice to see a program that does one thing well and gets such quality attention.

Re:A Quick and Easy Guide to Tmux by dboreham on Thursday October 27, 2022 @09:24PM (#33366366)
Re:A Quick and Easy Guide to Tmux by bananamerica on Thursday October 27, 2022 @09:41PM (#33366490)
Tmux is incredibly reliable and can even keep sessions between reboots with a plugin, to a certain extent.
Re:A Quick and Easy Guide to Tmux by jftuga on Thursday October 27, 2022 @10:02PM (#33366656)
Interesting. Which plugin?
Re:A Quick and Easy Guide to Tmux by noman-land on Thursday October 27, 2022 @10:21PM (#33366784)
Re:A Quick and Easy Guide to Tmux by user3939382 on Thursday October 27, 2022 @09:34PM (#33366441)
I spent a few days deep diving on tmux, getting my config right. I’ve been using it for 5-6 years since then without having to learn anything further. Great ROI, highly recommended.
Re:A Quick and Easy Guide to Tmux by NERD_ALERT on Thursday October 27, 2022 @09:47PM (#33366521)
I’ve become a huge fan of tmuxinator. Incredible tool for defining templates for tmux.

https://github.com/tmuxinator/tmuxinator

Re:A Quick and Easy Guide to Tmux by YouWhy on Thursday October 27, 2022 @10:00PM (#33366637)
tmux is a fantastic tool, but it tends to intimidate naive users.

My way of reassuring them is telling that they only need to remember one key shortcut, namely Ctrl+B at once followed by "?" to get to the help screen.

I can't say a lot of people around me end up using it, but must of them just don't need it that badly.

Re:A Quick and Easy Guide to Tmux by noman-land on Thursday October 27, 2022 @10:19PM (#33366771)
I ended up learning tmux out of necessity because I kept getting my processes killed when getting disconnected from ssh sessions. I don't know if I'd have the patience to stick with it otherwise.

Now I just use it as my window manager in terminal even though I'm rarely sshing these days. I love it. Combined with tmux-resurrect and tmux-continuum, which will persist sessions across restarts, and it's a total joy.

Re:A Quick and Easy Guide to Tmux by jftuga on Thursday October 27, 2022 @10:00PM (#33366638)
Here is my .tmux.conf [1]. This file also contains a basic tutorial. I set the PREFIX key to ctrl-a as it is more ergonomic. I also have a "mouse-mode" that can be toggled. When enabled, you can use the mouse to resize panes.

[1] https://github.com/jftuga/universe/blob/master/tmux.conf

Re:A Quick and Easy Guide to Tmux by e12e on Thursday October 27, 2022 @10:05PM (#33366679)
Any news/updates on tmux vs gnu screen? Last I looked (years ago) I couldn't find a compelling reason to switch from screen - are there any (to you)?
Re:A Quick and Easy Guide to Tmux by Jtsummers on Thursday October 27, 2022 @10:06PM (#33366689)
I dislike the default prefix key for both screen (C-a) and tmux (C-b) because they conflict with useful commands in emacs and the terminal (go to beginning of line, go back one character). I finally found C-j worked well for me (for both) because I very rarely want to use it directly so the occasional C-j C-j doesn't bother me much.

I found only 4 alphabet characters that didn't seem to have a conflict with something I used often enough for it to be annoying: g, i, j, m. Tried each, settled on j because of comfort while typing. Also hitting C-g when I wasn't in tmux turned out to be annoying on some systems.

Re:A Quick and Easy Guide to Tmux by bpanon on Thursday October 27, 2022 @11:12PM (#33367196)
try ctrl-space
Re:A Quick and Easy Guide to Tmux by Jtsummers on Friday October 28, 2022 @12:03AM (#33367555)
Emacs again, C-space sets the mark (used for selection and other things).
Re:A Quick and Easy Guide to Tmux by noman-land on Thursday October 27, 2022 @10:23PM (#33366811)
For anyone who's already using tmux and wants to persist their sessions across restarts, I cannot recommend tmux-resurrect and tmux-continuum highly enough.

https://github.com/tmux-plugins/tmux-resurrect https://github.com/tmux-plugins/tmux-continuum

Re:A Quick and Easy Guide to Tmux by dmtroyer on Friday October 28, 2022 @12:20AM (#33367639)
save yourself a bunch of hassle learning another set of obscure commands and use the iTerm tmux integration. https://iterm2.com/documentation-tmux-integration.html
Re:A Quick and Easy Guide to Tmux by d4rkp4ttern on Friday October 28, 2022 @07:48PM (#33379473)
This was great to know, thanks! This actually also solved a problem I had where I wasn’t able to scroll back up in a tmux session.
Re:A Quick and Easy Guide to Tmux by d4rkp4ttern on Friday October 28, 2022 @06:55AM (#33369803)
I like tmux but it’s really annoying that you can’t scroll back up, and you need a special shortcut to go into “copy mode” to do that. Maybe someone has a hack to make this more pleasant?