Topic: https://brettterpstra.com/2014/05/11/making-my-tmux-life-easier/
hide preview

What's next? verify your email address for reply notifications!

nnutter 10y, 308d ago

I think the "$2" in "tmux new -s $attach -n $2" should be "$1" because of the "shift".

remark link
hide preview

What's next? verify your email address for reply notifications!

ttscoff 10y, 308d ago

Thanks, I'm glad someone's around to catch my sleep-deprived stupidity :).

hide preview

What's next? verify your email address for reply notifications!

nnutter 10y, 309d ago

I have something similar. I didn't think about including the windows but I did add tab completion which you might be interested in. I would rather have tab completion than fuzzy matching.
https://gist.github.com/nnu...

remark link
hide preview

What's next? verify your email address for reply notifications!

ttscoff 10y, 309d ago

Way ahead of you :) http://brettterpstra.com/20...

Fuzzy tab completion _with_ window completion!

hide preview

What's next? verify your email address for reply notifications!

lepht 10y, 311d ago

Totally digging the tm shortcut, thanks!

I created a version[1] of the banner function that resolves the two problems I had with the original[2]:

- It was printing out all session names that currently had a client attached, instead of just the current one

- For some reason the grep wasn't capturing the current window properly

[1]: https://gist.github.com/lep...
[2]: http://lep.ht/xd9N/4DGofSRA

hide preview

What's next? verify your email address for reply notifications!

Eric Hansander 10y, 312d ago

Have you looked at byobu? A bunch of convenient wrappers and scripts (and keybindings) around screen and/or tmux.

http://byobu.co/

hide preview

What's next? verify your email address for reply notifications!

Ted Wise 10y, 313d ago

I'm really curious. What's your use case for tmux? My computer runs for weeks or months at a time between reboots and my terminal instances run those whole times. I have multiple tabs that let me visually track instances, so... what is everyone using tmux for?

remark link
hide preview

What's next? verify your email address for reply notifications!

Tony Giunta 10y, 312d ago

Basically what Brett said. I have to stare at a Windows box all day at work, but if there's any downtime I can use PuTTY to SSH into my machine at home. Everything is exactly how I left it and my soul hurts a little less.

Brett,
I only ever have one (giant) tmux session going, so I just made an alias to connect to it.

hide preview

What's next? verify your email address for reply notifications!

ttscoff 10y, 313d ago

SSH. I can close a session with a long running process and open it back up on another machine or terminal and it's all there. That's my primary need, the rest I've just come to enjoy. Flipping through windows and panes by name and quick menus is really convenient once you open more than, say, four...

hide preview

What's next? verify your email address for reply notifications!