mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 15:26:58 +00:00
Alter how tmux handles the working directory to internally use file
descriptors rather than strings. - Each session still has a current working directory. - New sessions still get their working directory from the client that created them or its attached session if any. - New windows are created by default in the session working directory. - The -c flag to new, neww, splitw allows the working directory to be overridden. - The -c flag to attach let's the session working directory be changed. - The default-path option has been removed. To get the equivalent to default-path '.', do: bind c neww -c $PWD To get the equivalent of default-path '~', do: bind c neww -c ~ This also changes the client identify protocol to be a set of messages rather than one as well as some other changes that should make it easier to make backwards-compatible protocol changes in future.
This commit is contained in:
24
tmux.1
24
tmux.1
@ -564,6 +564,7 @@ The following commands are available to manage clients and sessions:
|
||||
.Bl -tag -width Ds
|
||||
.It Xo Ic attach-session
|
||||
.Op Fl dr
|
||||
.Op Fl c Ar working-directory
|
||||
.Op Fl t Ar target-session
|
||||
.Xc
|
||||
.D1 (alias: Ic attach )
|
||||
@ -597,6 +598,10 @@ needs to select the most recently used session, it will prefer the most
|
||||
recently used
|
||||
.Em unattached
|
||||
session.
|
||||
.Pp
|
||||
.Fl c
|
||||
will set the session working directory (used for new windows) to
|
||||
.Ar working-directory .
|
||||
.It Xo Ic detach-client
|
||||
.Op Fl P
|
||||
.Op Fl a
|
||||
@ -1509,13 +1514,6 @@ is not specified, the value of the
|
||||
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
|
||||
@ -2175,17 +2173,6 @@ The default is an empty string, which instructs
|
||||
to create a login shell using the value of the
|
||||
.Ic default-shell
|
||||
option.
|
||||
.It Ic default-path Ar path
|
||||
Set the default working directory for new panes.
|
||||
If empty, the working directory is determined from the process
|
||||
running in the active pane, from the command line environment or from the
|
||||
working directory where the session was created.
|
||||
Otherwise the same options are available as for the
|
||||
.Fl c
|
||||
flag to
|
||||
.Ic new-window .
|
||||
The default is
|
||||
.Ql ~ .
|
||||
.It Ic default-shell Ar path
|
||||
Specify the default shell.
|
||||
This is used as the login shell for new windows when the
|
||||
@ -3054,7 +3041,6 @@ The following variables are available, where appropriate:
|
||||
.It Li "client_activity_string" Ta "" Ta "String time client last had activity"
|
||||
.It Li "client_created" Ta "" Ta "Integer time client created"
|
||||
.It Li "client_created_string" Ta "" Ta "String time client created"
|
||||
.It Li "client_cwd" Ta "" Ta "Working directory of client"
|
||||
.It Li "client_height" Ta "" Ta "Height of client"
|
||||
.It Li "client_last_session" Ta "" Ta "Name of the client's last session"
|
||||
.It Li "client_prefix" Ta "" Ta "1 if prefix key has been pressed"
|
||||
|
Reference in New Issue
Block a user