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 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.
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 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.
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?
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.
https://github.com/tmuxinator/tmuxinator
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.
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.
[1] https://github.com/jftuga/universe/blob/master/tmux.conf
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.
https://github.com/tmux-plugins/tmux-resurrect https://github.com/tmux-plugins/tmux-continuum