Change the default for the default-path option to ~. This is a quick

change to turn off the KERN_PROC_CWD code which is unpredictable. Later
it will go away and there may be other changes to how this works.
This commit is contained in:
nicm 2013-10-05 13:56:48 +00:00
parent 9f330897a8
commit 7c71c3e27d
2 changed files with 4 additions and 2 deletions

View File

@ -128,7 +128,7 @@ const struct options_table_entry session_options_table[] = {
{ .name = "default-path", { .name = "default-path",
.type = OPTIONS_TABLE_STRING, .type = OPTIONS_TABLE_STRING,
.default_str = "" .default_str = "~"
}, },
{ .name = "default-shell", { .name = "default-shell",

4
tmux.1
View File

@ -2173,13 +2173,15 @@ to create a login shell using the value of the
option. option.
.It Ic default-path Ar path .It Ic default-path Ar path
Set the default working directory for new panes. Set the default working directory for new panes.
If empty (the default), the working directory is determined from the process If empty, the working directory is determined from the process
running in the active pane, from the command line environment or from the running in the active pane, from the command line environment or from the
working directory where the session was created. working directory where the session was created.
Otherwise the same options are available as for the Otherwise the same options are available as for the
.Fl c .Fl c
flag to flag to
.Ic new-window . .Ic new-window .
The default is
.Ql ~ .
.It Ic default-shell Ar path .It Ic default-shell Ar path
Specify the default shell. Specify the default shell.
This is used as the login shell for new windows when the This is used as the login shell for new windows when the