Live data from Hacker News

Tools I Use - tmux

rdegges.com

51–60 of 61 posts

Re: Tools I Use - tmux

#51
post #49

What I don't understand is how both screen and tmux ship with bindings that conflict with readline. Did nobody notice, or did nobody care? Neither is usable without fixing this in config.

Configuring the prefix key to C-z is quite harmless, C-z C-z for suspend is quite ok. (As a bonus hint, binding subkeys with control it's faster to send commands: C-z C-n is faster than C-z n, you just keep control pressed during the command sequence.)

Of course, it's easy to fix. It just boggles my mind that they would have made that mistake in tmux to begin with when you consider that it's one of the main complaints people have about screen and tmux was supposed to be a "better screen".

Re: Tools I Use - tmux

#52
post #50

I absolutely love tmux and use it everyday, but the killer feature I really want is tighter integration with a terminal emulator like iterm2. I would love to be able to attach to a tmux session with iterm2 and scroll using two-finger scrolling, while still being able to detach from the session and re-attach remotely. It would seem like this would be a possibility given tmux's design, which is a lot more flexible than…

Your wish has been granted. See some of the recent nighties for iterm2 and associated discussion in the iterm google group.

Re: Tools I Use - tmux

#54
post #24

I used screen for 15 years but recently switched because I liked tmux's easy-to-read conf file and scriptability. Mac OS X users watch out, launchctl commands barf mysteriously inside of tmux.

This should be added to a FAQ somewhere. Took me ages to figure it out on my own, especially since the error msg is so generic -> http://pig-rabbit.com/tmux-and-launchctl

Just use https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard. Works for pbcopy, pbpaste, and launchctl.

Then just alias launchctl to "reattach-to-user-namespace /bin/launchctl"

Re: Tools I Use - tmux

#55
post #29

ftfy - screen supports vertical splits too: ^A |

Only in very recent versions; on most distros it means compiling from CVS.

It's been supported in Ubuntu since at least 10.10, which isn't ancient, but I'm not sure it counts as a "very recent version".

Re: Tools I Use - tmux

#56
post #4

There are multiple problems with tmux on OS X. pbcopy and pbpaste, for instance, are entirely unusable. Even if tmux has some nice benefits over screen, it probably isn't worth it to the Mac user to switch.

Looks like there's a fix for using pbcopy and pbpaste with tmux on Mac OS X: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

Re: Tools I Use - tmux

#57

I use screen regularly, but mostly to be able to attach and detach to sessions as I move between work, home, etc. tmux users frequently tout its ability to do nifty split screens and other window management, but I'm not sure I understand the value of doing this over just starting another iterm2 window/tab and using regular window management tools. Cmd-tilde or Cmd-tab is one less key than Ctrl-a, h.... :) What am I m…

Good news for iTerm2/tmux users: the next version of iTerm2 (according to the author) has deep tmux integration: http://groups.google.com/group/iterm2-discuss/browse_thread/...

Re: Tools I Use - tmux

#58

What I don't understand is how both screen and tmux ship with bindings that conflict with readline. Did nobody notice, or did nobody care? Neither is usable without fixing this in config.

Funny, just went from screen to tmux in one hour, and that was the first the exact same thing I felt odd about :)

Re: Tools I Use - tmux

#59
One note though - both screen and tmux introduce some delay making the text appear a tad slower (I'm using it over SSH strictly, no idea about 'native console'), does anyone know the solution?

Re: Tools I Use - tmux

#60

One note though - both screen and tmux introduce some delay making the text appear a tad slower (I'm using it over SSH strictly, no idea about 'native console'), does anyone know the solution?

I think that is more to do with SSH than screen or tmux. I just tested it on a SSH session across the Pacific. No difference whether it is a straight xterm or if it is within a screen session.
Post reply on HN