1
0
mirror of https://github.com/tmux/tmux.git synced 2025-03-30 19:48:48 +00:00

Document -L and -8, fix synopsis.

This commit is contained in:
Nicholas Marriott 2009-04-20 19:25:58 +00:00
parent 2ab713ab6b
commit f9af6f7f8c
5 changed files with 40 additions and 29 deletions

2
TODO
View File

@ -101,6 +101,4 @@
- document swap-pane and rotate-window - document swap-pane and rotate-window
- document status-keys - document status-keys
- document break-pane - document break-pane
- document -8 flag
- document set-remain-on-exit - document set-remain-on-exit
- document -L and update socket path bits in tmux.1

View File

@ -29,14 +29,15 @@ bind m setw monitor-activity
bind y setw force-width 81 bind y setw force-width 81
bind u setw force-width 0 bind u setw force-width 0
bind D detach \; lock
bind N neww \; splitw -d bind N neww \; splitw -d
bind ~ split-window "top -s 0.5" bind ~ split-window "exec top -s 0.5"
bind "#" split-window "ncmpc -f ~/.ncmpc.conf" bind "#" split-window "exec ncmpc -f ~/.ncmpc.conf"
bind / command-prompt "split-window 'man %%'" bind / command-prompt "split-window 'exec man %%'"
# First session.s # First session.
new -d -s0 -nirssi 'ssh -t natalya screen -DRS irssi irssi' new -d -s0 -nirssi 'exec ssh -t natalya screen -DRS irssi irssi'
setw -t0:0 monitor-activity on setw -t0:0 monitor-activity on
setw -t0:0 aggressive-resize on setw -t0:0 aggressive-resize on
set -t0 status-bg green set -t0 status-bg green
@ -54,10 +55,6 @@ neww -d
neww -d neww -d
neww -d neww -d
neww -d neww -d
neww -d
neww -d
neww -d
neww -d
# Second session. # Second session.
new -d -s1 new -d -s1

View File

@ -5,9 +5,7 @@
# I alias this script to "session" in .profile and use it to reconnect to # I alias this script to "session" in .profile and use it to reconnect to
# the main session (0) on my main tmux server. # the main session (0) on my main tmux server.
SOCKET=/tmp/tmux-1000-main TMUX="tmux -dLmain"
TMUX="tmux -S $SOCKET" $TMUX has -t0 2>/dev/null || $TMUX -qf ~/.tmux.conf.main start
exec $TMUX attach -d -t0
$TMUX has -s0 2>/dev/null || $TMUX start
$TMUX attach -d -s0

38
tmux.1
View File

@ -1,4 +1,4 @@
.\" $Id: tmux.1,v 1.84 2009-04-20 19:11:31 nicm Exp $ .\" $Id: tmux.1,v 1.85 2009-04-20 19:25:58 nicm Exp $
.\" .\"
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> .\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
.\" .\"
@ -14,7 +14,7 @@
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\" .\"
.Dd June 30, 2008 .Dd April 20, 2009
.Dt TMUX 1 .Dt TMUX 1
.Os .Os
.Sh NAME .Sh NAME
@ -23,8 +23,9 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm tmux .Nm tmux
.Bk -words .Bk -words
.Op Fl 2dqUuVv .Op Fl 28dqUuVv
.Op Fl f Ar file .Op Fl f Ar file
.Op Fl L Ar socket-name
.Op Fl S Ar socket-path .Op Fl S Ar socket-path
.Op Ar command Op Ar flags .Op Ar command Op Ar flags
.Ek .Ek
@ -54,6 +55,10 @@ The options are as follows:
Force Force
.Nm .Nm
to assume the terminal supports 256 colours. to assume the terminal supports 256 colours.
.It Fl 2
Like
.Fl 8 ,
indicates the terminal supports 88 colours.
.It Fl d .It Fl d
Force Force
.Nm .Nm
@ -70,14 +75,27 @@ commands which are executed in sequence when the server is first started.
.It Fl q .It Fl q
Prevent the server sending various information messages, for example when Prevent the server sending various information messages, for example when
window flags are altered. window flags are altered.
.It Fl L Ar socket-name
.Nm
stores the server socket in a directory under
.Pa /tmp ;
the default socket is named
.Em default .
This option allows a different socket name to be specified, allowing several
independent
.Nm
servers to be run.
Unlike
.Fl S
a full path is not necessary: the sockets are all created in the same
directory.
.It Fl S Ar socket-path .It Fl S Ar socket-path
Specify an alternative path to the server socket. Specify a full alternative path to the server socket.
The default is If
.Pa /tmp/tmux-UID , .Fl S
where is specified, the default socket directory is not used and any
.Em UID .Fl L
is the uid of the user who invoked flag is ignored.
.Nm .
.It Fl U .It Fl U
Unlock the server. Unlock the server.
.It Fl u .It Fl u

6
tmux.c
View File

@ -1,4 +1,4 @@
/* $Id: tmux.c,v 1.112 2009-04-01 20:15:48 nicm Exp $ */ /* $Id: tmux.c,v 1.113 2009-04-20 19:25:58 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -71,8 +71,8 @@ const char *__progname = "tmux";
__dead void __dead void
usage(void) usage(void)
{ {
fprintf(stderr, "usage: " fprintf(stderr, "usage: %s [-28dqUuVv] [-f file] "
"%s [-2dquVv] [-f file] [-S socket-path] [command [flags]]\n", "[-L socket-name] [-S socket-path] [command [flags]]\n",
__progname); __progname);
exit(1); exit(1);
} }