Live data from Hacker News

A Tmux Crash Course (2011)

robots.thoughtbot.com

11–20 of 85 posts

Re: A Tmux Crash Course (2011)

#11
post #7

If you're willing to spend $14 for a more detailed tutorial, I'd strongly recommend _ tmux: Productive Mouse-Free Development_ from The Pragmatic Bookshelf. It goes through common use cases, common customizations, and pair programming. http://pragprog.com/book/bhtmux/tmux

The Kindle version is only $7.20:

http://www.amazon.com/tmux-Productive-Mouse-Free-Development...

Re: A Tmux Crash Course (2011)

#14
post #7

If you're willing to spend $14 for a more detailed tutorial, I'd strongly recommend _ tmux: Productive Mouse-Free Development_ from The Pragmatic Bookshelf. It goes through common use cases, common customizations, and pair programming. http://pragprog.com/book/bhtmux/tmux

The Kindle version is only $7.20: http://www.amazon.com/tmux-Productive-Mouse-Free-Development...

Pretty please buy it direct from PragProg. You get the Kindle version and the PDF (and an ePub) that way. Plus, I get more royalties. :)

Re: A Tmux Crash Course (2011)

#15
post #7

If you're willing to spend $14 for a more detailed tutorial, I'd strongly recommend _ tmux: Productive Mouse-Free Development_ from The Pragmatic Bookshelf. It goes through common use cases, common customizations, and pair programming. http://pragprog.com/book/bhtmux/tmux

Thank you so much for the plug.

Re: A Tmux Crash Course (2011)

#16

I am curious to know what are the major differences between tmux and a tiling window manager? I've used awesome Wm for a while, now on i3wm.

So I wrote a book on tmux and use it every day, but I use i3 on my Linux box.

The main difference? tmux is a terminal multiplexer. So it's not going to handle the web browser stuff at all. Other than that, it's like Screen.

A lot of devs spend a lot of time in the Terminal, running scripts, background servers, etc. With tmux (like Screen) you can have them running and detach, and come back later.

Even with i3 I still find lots of room for tmux in my workflow when I'm in that environment.

tmux is also a hell of a tool for pair programming, and for managing remote servers.

But yea, if you're happy with i3, and you're using that to do Terminal splits, that's probably pretty great as is. tmux will remember the current working dir when you open new splits, and you can script it to launch your project workspace, but that's kind of just icing.

Re: A Tmux Crash Course (2011)

#17
I have learned to be careful about any long running or interactive processes that end up out-of-sight-out-of-mind. I accidentally left a db connection open in one of my tmux windows and our staging db didn't refresh for 2 days haha. (And I immediately started debugging in the wrong places, of course.)

Re: A Tmux Crash Course (2011)

#18

I use Terminator ( http://www.tenshu.net/p/terminator.html ) primarily on local machines instead of screen/tmux(or byobu). I get the added benefit of scrolling. I tend to copy paste a lot from log tails etc into my my text editor for quick searches or other things. The infinite scroll feature(with a scroll bar) helps me out a lot. In tmux/screen i still haven't figured out a good workflow to copy a few screenful of c…

If you're in copy mode in tmux - prefix [ then you can use emacs or vim keybindings to do your selection and copying, and then it's just prefix ] to paste into an editor. If you're comfortable selecting a few pages of text with Vim, it doens't take a terribly long time to get used to doing it with tmux.

That said, use what makes you productive, and be happy!

Re: A Tmux Crash Course (2011)

#19
Looks like the author only uses one session he calles "work". What I really like about sessions is that it allows for isolated contexts which are easy to switch (prefix-s get prints you a nice list [1]).

Right now I have seven sessions open [1]. Three are work projects (they usually have windows for vim, db console, etc.), two are university courses (vim, matlab), in one session I'm learning some Haskell, and in the last one I'm working on an open source ruby gem. If I had all these windows in one session only, I'd constantly be switching to the wrong windows.

[1] http://cl.ly/Qgaz

Re: A Tmux Crash Course (2011)

#20
post #14

Earlier quoted context omitted.

The Kindle version is only $7.20: http://www.amazon.com/tmux-Productive-Mouse-Free-Development...

Pretty please buy it direct from PragProg. You get the Kindle version and the PDF (and an ePub) that way. Plus, I get more royalties. :)

Obviously... because it's double the price.

Equivalent to saying: "Please give me more money... because that way i get more money"

Post reply on HN