=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.1,v retrieving revision 1.337 retrieving revision 1.338 diff -u -r1.337 -r1.338 --- src/usr.bin/tmux/tmux.1 2013/03/24 09:57:59 1.337 +++ src/usr.bin/tmux/tmux.1 2013/03/24 09:58:40 1.338 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.337 2013/03/24 09:57:59 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.338 2013/03/24 09:58:40 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" @@ -666,7 +666,7 @@ Lock all clients attached to .Ar target-session . .It Xo Ic new-session -.Op Fl d +.Op Fl AdD .Op Fl n Ar window-name .Op Fl s Ar session-name .Op Fl t Ar target-session @@ -696,6 +696,21 @@ If run from a terminal, any .Xr termios 4 special characters are saved and used for new windows in the new session. +.Pp +The +.Fl A +flag makes +.Ic new-session +behave like +.Ic attach-session +if +.Ar session-name +already exists; in the case, +.Fl D +behaves like +.Fl d +to +.Ic attach-session . .Pp If .Fl t