A few friends have been telling me about tmux and since I’ve been using a mac full time again (rather than ssh into linux) I haven’t used a screen multiplexer. I wrote awhile back about Getting around with GNU Screen and I really liked screen. I was listening to Changelog’s podcast Episode 0.7.3 - Tmux with Brian Hogan and Josh Clayton on one of my walks, it seemed useful and better than screen. Then I remembered hey it was kind of useful to use a screen multiplexer (BTW, I love saying multiplexer. I feel smart, like I know what I am talking about, hehe). I got home from my walk and installed it and started with the links on the changelog show notes and not wanting to get overwhemed by just copying someone conf file, I started simple and added a few things:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
I used the default from screen, ctrl-a to go into command mode. Since that the combo used for screen, it seemed like a good idea. The second setting sets the numbering at 1, arguement for that is the 1 is probably closer to where you are typing and certainly closer to ctrl-a
The next 3 were just something I found, seemed like they’d be ok. Then I stopped adding to the conf and started trying it out.
I often alternate between textmate and macvim. I remembered from the podcast that one of the guys now just does entirely vim. Meh ok, I only like a few of the things in macvim, mostly scrolling and clicking to change panes. So i opened my project up and started working away.
I had a hard time figuring out how to get the split that one of the guys talked about, so once I found it made note of it:
I used this page alot and copy and pasted some things to my own cheatsheet
One thing I really like is named sessions so I can have my own workspaces
1 2 3 4
Great to remember what you were doing last!
Fun is where I work on something fun. I was digging into rails activesupport source code and reading the tests. koans is where I work through rubykoans (having it in a session makes it quick to switch and work on a few at a time). Its split down the middle with my console on one side and the code on the other. Work is well work :) I have it split 75/25 with vim at the top, and bottom is just the shell where i type my git commands, ack/grep. I have a second window with my rails server log going.
I even found a pomodoro timer that runs in the console.
Its working out good. I’ve started to work fullscreen and keep clutter out of slight. I think its a smoother flow than screen and I wish I had dived in sooner.
If you haven’t tried a screen multiplexer give it a shot! Remember to start with a few commands at a time so you dont get overwhelmed!
Edited to add:
Tmux remote pairing scripts