From 6d2830a473f8b710fca841f763b461b388630e14 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 23 Jun 2009 22:13:11 +0000 Subject: [PATCH] Add some common config file examples to the quick start section. --- tmux.1 | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/tmux.1 b/tmux.1 index c7a70240..88e4f7b2 100644 --- a/tmux.1 +++ b/tmux.1 @@ -189,6 +189,43 @@ lists the current key bindings in the current window; up and down may be used to navigate the list or .Ql q to exit from it. +.Pp +Commands to be run when the +.Nm +server is started may be placed in the +.Pa ~/.tmux.conf +configuration file. +Common examples include: +.Bl -ohang -width Ds +.It Changing the default prefix key: +.Bd -literal -offset indent +set-option -g prefix C-a +unbind-key C-b +bind-key C-a send-prefix +.Ed +.Pp +.It Xo +Turning the status line off, or changing its colour: +.Xc +.Bd -literal -offset indent +set-option -g status off +set-option -g status-bg blue +.Ed +.Pp +.It Xo +Setting other options, such as the default command, or locking after 30 minutes +of inactivity: +.Xc +.Bd -literal -offset indent +set-option -g default-command "exec /bin/ksh" +set-option -g lock-after-time 1800 +.Ed +.It Creating new key bindings: +.Bd -literal -offset indent +bind-key b set-option status +bind-key / command-prompt "split-window 'exec man %%'" +.Ed +.El .Sh KEY BINDINGS .Nm may be controlled from an attached client by using a key combination of a