My tmux setup
unwiredcouch.com
unwiredcouch.com
It's got the whole thing covered end-to-end if you ever wanted to get around learning it.
That said, tmux is way easier to use compared to screen. And with 1.8 and text reflow it pretty much has every feature from screen I ever wanted/needed/used.
unbind [ # free the weird binding
set-window-option -g mode-keys vi # switch to vi bindings
bind Escape copy-mode # ctrl-a ESC put your pane in a kind of vi normal mode
bind-key -t vi-copy v begin-selection # start a visual select mode with v like in vim
bind-key -t vi-copy y copy-selection # yank with y
unbind p # free another weird binding
bind p paste-buffer # paste with crtl-a pI'm guessing this is autocorrect, but an autocorrect that knows 'pneumonic' (the Firefox spell-checker doesn't!) but not 'mnemonic' seems even less likely than a person who knows the first word but not the second.
Anyway, 'previous' is perhaps less likely to spring to mind than 'back' or 'reverse' or even 'last', each of which would have different mnemonics. ('Last' has a particularly good mnemonic if you keep your hands to the Holy Home Row, which is why vi users, who are most likely to worship at the Altar of the Home Row, can't use it.)
Here is mine - http://dhaiv.at/dotfiles/ I use ` (backtick) as my escape key, that makes jumping between windows just a double tap on `
`+" to list all windows, really handy.
`+| to split vertically
tmux.conf for interested https://github.com/ceocoder/tmuxrc/blob/master/tmux.conf
The downside is that if go like ssh A then ssh B, display doesn't update. But I don't this too often anyway.
I adopted tmux about a month ago and I can't really complain much. It's just awesome. If you work a lot in the terminal (I do), I would highly recommend using it.
A friend of mine uses OS X -- and there tmux comes more to it's right as there's no (Free) way to get sane (for biased values of sane) window management under OS X.
[edit: It might be worth noting, that after running into a lot of problems with unicode input and urxvt, I switched to sakura[1] for my terminal -- and it's basically a lighter gnome terminal that's easy to set up without any chrome. Under debian I bind that to my x-terminal-emulator alternative, and I can ctrl-enter to open a new terminal via xmonad (xmonad needs a short config to use x-terminal-emulator though).
https://github.com/mrtazz/bin/blob/master/imap_check.py
This looks for a file at ~/.netrc
What is the format of that file? Google results can't find this being used for email anywhere.
machine smtp_server.company.com
login user.name@company.com
password supersecrettmux isn't a dead project.
Spirit of exploration? I started with tmux and no screen experience, but I've converted a few people to tmux by them just giving it a chance, basically.
I still don't understand how this happened to so many people. Ctrl+a is already taken, how did anyone ever use screen without immediately changing it to something that doesn't conflict with a frequently used shell shortcut?
Such a handy feature, isn't it. I would be lost without my drop-down console.
So if I want to go to the beginning of a line in Bash, I just press C-a C-a (which actually works if I hold down Ctrl and press 'a' twice.
Not a big deal at all, and since I remap Caps Lock to Ctrl, the command combo is right on my left hand. (I slide my hand over a bit as if I were playing guitar or piano, rather than stretch fingers, so pinky on CapsLock, ring finger on a.)
The guy introduced me to screen recommended it. His words were "if you're an emacs guy, having this mapped to ctrl-a is going to drive you crazy"
You can send it to ping on linux to print a report line without terminating, for example.
Zsh doesn't use readline (it has it's own line editor) but it can be set to vi-style input too. (Actually, at least on my system, bash doesn't seem to be linked with libreadline.. I'm not sure if it is actually using readline or not)
Of course, when I started developing on a Macbook, screen rapidly became problematic as there was no Home key and I started using Ctrl-A. For the moment, I'm developing locally so I don't need screen or tmux, but I'm working on off-loading to a VM and I'll be using tmux there for the purposes of maintaining my own sanity.
Control-q: beginning-of-line
I know, I know, now we are remapping all over the place. But my muscle memory for Ctrl-a was too ingrained after years of screen usage.ctrl-b is fairly quick and easy if you use two hands (which is inferior to using one hand) and is quite a bit more difficult than ctrl-a when using one hand.
# C-z as prefix key. C-z C-z will send C-z to application, C-z z cycles last window
set-option -g prefix C-z
unbind C-b
bind-key C-z send-prefix
bind-key z last-windowIt is a minor annoyance in markdown but in shell programming I use `$(...)` instead, since it can be hard to tell if a character is a backtick or a single quote.