=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.1,v retrieving revision 1.271 retrieving revision 1.272 diff -u -r1.271 -r1.272 --- src/usr.bin/tmux/tmux.1 2012/01/30 20:48:28 1.271 +++ src/usr.bin/tmux/tmux.1 2012/01/31 15:52:21 1.272 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.271 2012/01/30 20:48:28 jmc Exp $ +.\" $OpenBSD: tmux.1,v 1.272 2012/01/31 15:52:21 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 30 2012 $ +.Dd $Mdocdate: January 31 2012 $ .Dt TMUX 1 .Os .Sh NAME @@ -1224,6 +1224,7 @@ .Ar dst-window . .It Xo Ic new-window .Op Fl adkP +.Op Fl c Ar start-directory .Op Fl n Ar window-name .Op Fl t Ar target-window .Op Ar shell-command @@ -1254,6 +1255,15 @@ is not specified, the value of the .Ic default-command option is used. +.Fl c +specifies the working directory in which the new window is created. +It may have an absolute path or one of the following values (or a subdirectory): +.Bl -column "XXXXXXXXXXXX" "XXXXXXXXXXXXXXXXXXXXXXXX" -offset indent +.It Li "Empty string" Ta "Current pane's directory" +.It Li "~" Ta "User's home directory" +.It Li "-" Ta "Where session was started" +.It Li "." Ta "Where server was started" +.El .Pp When the shell command completes, the window closes. See the @@ -1453,6 +1463,7 @@ commands. .It Xo Ic split-window .Op Fl dhvP +.Op Fl c Ar start-directory .Oo Fl l .Ar size | .Fl p Ar percentage Oc