diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-01-31 15:52:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-01-31 15:52:21 +0000 |
commit | 908a22e41ce9b33156ee2fa7a68bd585033cf3a3 (patch) | |
tree | 218d3848ddddab98ee5021e11dc73865e1a05743 /tmux.1 | |
parent | 49a5a587ec6c99e4030d51cb65f04d49c87e3c31 (diff) |
Provide defined ways to set the various default-path possibilities: ~
for home directory, . for server start directory, - for session start
directory and empty for the pane's working directory (the default). All
can also be used as part of a relative path (eg -/foo). Also provide -c
flags to neww and splitw to override default-path setting.
Based on a diff from sthen. ok sthen
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1224,6 +1224,7 @@ is moved to .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 @@ If 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 @@ and 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 |