Tuesday 8 May 2012

First day of tmux - Common Commands

In learning something new there is always a curve. When learning command line tools part of that curve is learning the commands. Today is my first day using tmux with VIM in my work and here are the commands that I found myself searching for the most.

Please bare in mind that today was my first day using tmux so I’m likely not doing things the best way, doing them incorrectly or just being plain wrong.

Action Command
List sessions ctrl+b s
Horizontal split ctrl+b "
Resize split pane :resize-pane -UDLR amount
Rename session :resize-session session_name
Close session/ pane logout

I did at times today find myself accidentally moving the bottom window to the bottom and the bottom to the top. I think this has something to do with the fact that the keyboard commands are similar.

With the exception of the incident where tmux was rendering pane borders as dashes, tmux has knocked my socks off. Being able to close my terminal at the end of the day and being to resurrect it exactly where I left off is a massive bonus.