Differences

This shows you the differences between two versions of the page.


tmux [2016/05/04 19:27] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== tmux ======
  
 +  * [[screen]]
 +
 +  * [[http://code.tutsplus.com/tutorials/intro-to-tmux--net-33889|Intro to tmux]]
 +  * [[http://www.dayid.org/os/notes/tm.html|tmux and screen reference sheet]]
 +  * [[http://blog.sanctum.geek.nz/sync-tmux-panes/|sync tmux panes]]
 +
 +To build tmux from source, libevent must be installed as well.  The tmux configure/build will link against libevent in ''/usr/local'', but will not see it at runtime.  Build tmux as a static binary to work around it.
 +
 +== Set bindings to Ctl-A ==
 +
 +<code>
 +unbind C-b
 +set -g prefix C-a
 +</code>
 +
 +== Attach window and detach all others ==
 +
 +<code>
 +tmux attach -d
 +</code>
 +
 +== List active sesssions ==
 +
 +Also displays which ones are attached:
 +
 +<code>
 +tmux list-sessions
 +</code>
 +
 +=== Source Install ===
 +
 +tmux build can't find libevent even with setting prefix:
 +
 +<code>
 +./configure --prefix=/opt/local CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib
 +</code>
 +
 +** Static build **
 +
 +You can use [[https://gist.github.com/ryin/3106801|this script]] to simplify downloading and installing a tmux build.

Navigation
QR Code
QR Code tmux (generated for current page)