Live data from Hacker News

Tmux for Mere Mortals

zserge.com

101–110 of 171 posts

Re: Tmux for Mere Mortals

#101
Changing the default keybindings will bite you in the back, the moment you have to touch a system that isn't yours.

It's worth learning the defaults, and it's not that hard. They do make some sense.

Re: Tmux for Mere Mortals

#103
Can someone please please make a util that configures tmux for me?

I'd like to run a small program that generates a tmux.conf, after asking me some questions, and having me demonstrate my responses.

So step one, it should be able to figure out what version of tmux I'm using. Then it probably needs to know what SSH program I'm using, so it knows how the keyboard and mouse from that program will mess with it.

Picture a Wizard where it asks, "Do you use the mouse to copy and paste? Try to highlight this text: [example1]. Then try to paste it back into this screen." and etc.

Wouldn't this be... kind of an obvious thing to make?

Re: Tmux for Mere Mortals

#104

Can someone please please make a util that configures tmux for me? I'd like to run a small program that generates a tmux.conf, after asking me some questions, and having me demonstrate my responses. So step one, it should be able to figure out what version of tmux I'm using. Then it probably needs to know what SSH program I'm using, so it knows how the keyboard and mouse from that program will mess with it. Picture a…

Just use 'byobu'. it's a pretty good starting point :)

Re: Tmux for Mere Mortals

#105

Can someone please please make a util that configures tmux for me? I'd like to run a small program that generates a tmux.conf, after asking me some questions, and having me demonstrate my responses. So step one, it should be able to figure out what version of tmux I'm using. Then it probably needs to know what SSH program I'm using, so it knows how the keyboard and mouse from that program will mess with it. Picture a…

Oh so many useful utilities to write. Folks often say "what should I do with my programming skills?" when there are endless tools, whos lack hold us back.

My favorite would be a tool that wrote a Linux device tree source file, by digesting the board schematic. Port Linux to your new device with one click! Of course, that would take away a large part of my contracts. I'd have to do some real work for a change.

Re: Tmux for Mere Mortals

#106
post #98
post #93

Earlier quoted context omitted.

In the video, are you ssh'd into three servers, or are all of the projects local, or some combination?

They are local projects, but you can be ssh'd into another server from a tmux session / window. A tmux window or split window is just another terminal at the end of the day.

Having them remote also saves you from the window-update-hell, which annoys me no end. You can save the session and log out.

As I said in another post, I was a heavy tmux user until I started using Fluxbox. But tmux definitely had advantages. Now in the WFH world it's a good opportunity to try to optimize the workflow again.

Re: Tmux for Mere Mortals

#107
post #88
post #10

Spent too much time wonking a tmux config only realizing it was never going to work how I liked. You can't have it all with the mouse no matter your settings, there will always be a compromise. It also doesn't help that no one cites the version of tmux they wrote their configs for, nor that the configs are not backwards compatible with all versions of tmux for all settings. It's really clunky, but I went from tmux to…

Tmux on my local machine was useless. Tmux on my server has been a godsent. Just connect and re-attach to the tmux session and you are right where you left off. I did modify the key binds a little bit to make splitting windows and enable the mouse, but otherwise I just don’t need any more advanced behavior.

I guess different work patterns work differently for different people. I've been using tmux exclusively on my local machine (much less often on remote machines) for the last 2+ years, and it really works well for me. On a daily basis I tend to work in a lot of different contexts, so having scroll-back buffer and bash history nicely organized so I can switch from task to task, with clean restoration of the scrollback/bash history for each environment when I reboot my computer to update it is a godsend. I also like having the various parallel running tasks for a particular environment (like an ssh, log tail, commands) - all running in different panes in a single window - so I never have to go looking for them.

One change I made was forcing myself to always name a window when it gets created - that way I can usually hotkey back into an environment by its name, rather than having to go searching for windows.

I particularly like that I can use exactly the same toolset on my Mac, Windows, and Linux clients.

Re: Tmux for Mere Mortals

#108

Can someone please please make a util that configures tmux for me? I'd like to run a small program that generates a tmux.conf, after asking me some questions, and having me demonstrate my responses. So step one, it should be able to figure out what version of tmux I'm using. Then it probably needs to know what SSH program I'm using, so it knows how the keyboard and mouse from that program will mess with it. Picture a…

Oh so many useful utilities to write. Folks often say "what should I do with my programming skills?" when there are endless tools, whos lack hold us back. My favorite would be a tool that wrote a Linux device tree source file, by digesting the board schematic. Port Linux to your new device with one click! Of course, that would take away a large part of my contracts. I'd have to do some real work for a change.

Not if you keep it for yourself ;)

Re: Tmux for Mere Mortals

#109

Can someone please please make a util that configures tmux for me? I'd like to run a small program that generates a tmux.conf, after asking me some questions, and having me demonstrate my responses. So step one, it should be able to figure out what version of tmux I'm using. Then it probably needs to know what SSH program I'm using, so it knows how the keyboard and mouse from that program will mess with it. Picture a…

Oh so many useful utilities to write. Folks often say "what should I do with my programming skills?" when there are endless tools, whos lack hold us back. My favorite would be a tool that wrote a Linux device tree source file, by digesting the board schematic. Port Linux to your new device with one click! Of course, that would take away a large part of my contracts. I'd have to do some real work for a change.

If you build it yourself you could easily continue those contracts with way less work put in. There's many, many jobs out there that exist only because people don't think they can read the documentation and figure out how to run things themselves.

If the contracts start to dry up, offer it as an automated service. Look at how many people still pay to have someone install and configure things like Wordpress. There's literally thousands of free guides on the internet about how to do it yourself but people will gladly hand over their money to have someone that claims to be an expert do it instead.

Re: Tmux for Mere Mortals

#110
post #99
post #75

Earlier quoted context omitted.

I've always wanted something like that, can you please share your config?

This is the section of my config that sets up using the clipboard for tmux buffers. It won't work as is unless you're using both fish shell and Mac, but this should at least give you some good keywords to google and find documentation on how to do it for your system #makes clipboard work set-option -g default-command "reattach-to-user-namespace -l fish" bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T…

If you’re using Mojave or later you don’t need `reattach-to-user-namespace` anymore :)
Post reply on HN