primarily focused on improving the ergonomics of using named sessions.
.Pp
If no command is provided, remux will use the context action. Inside a repository, remux will attach or create. If in a session or outside a repository, remux will list sessions.
.ShCOMMANDS
.Nmremux
commands are split into two categories: global commands, which can be used anywhere, and session commands, which can only be used from inside a session.
.SsGLOBALCOMMANDS
.Bl-tag-widthDs
.ItXoIcattach
.OpFldnr
.OpArtitle
.OpArwindow
.Xc
.Bd-literal-compact
aliases: a
Attaches to an existing session.
.Ed
.Pp
.Bl-tag-widthDs-compact
.ItFld,Fl-detach
Detach all other connections to the session.
.ItFln,Fl-nest
Allow nesting (attaching a session from inside another session).
.ItFlr,Fl-read-only
Attach the session in read-only mode.
.ItArtitle
The title of the target session. If not given, remux will try to use the name of the repository containing the current directory.
.ItArwindow
The name of the window to attach to.
.El
.ItXoIcdetach
.OpArtitle
.Xc
.Bd-literal-compact
aliases: d
Detaches all clients from the target session.
.Ed
.ItXoIchas
.OpFlq
.OpArtitle
.Xc
.Bd-literal-compact
aliases: h
Checks whether or not a session exists.
.Ed
.Pp
.Bl-tag-widthDs-compact
.ItFlq,Fl-quiet
Run silently without printing to standard output.
.ItArtitle
The title of the target session. If not given, remux will attempt to use the name of the repository containing the current directory.
.El
.ItIclist
.Bd-literal-compact
aliases: l, ls
Pretty-prints a list of tmux sessions.
.Ed
.ItXoIcnew
.OpFldn
.OpFlt\|\--targetArpath
.OpArtitle
.OpArcommand
.Xc
.Bd-literal-compact
aliases: n
Creates a new session.
.Ed
.Pp
.Bl-tag-widthDs-compact
.ItFld,Fl-detach
Creates the session without attaching.
.ItFln,Fl-nest
Allow nesting (attaching a session from inside another session).
.ItFlt,Fl-targetArpath
Sets the session path to the provided directory.
.ItArtitle
Create the session with the given title. If not given, remux will attempt to use the name of the repository containing the current directory.
.El
.El
.SsSESSIONCOMMANDS
.Bl-tag-widthDs
.ItIcpath
.Bd-literal-compact
aliases: p
Prints the session path.
.Ed
.ItXoIcswitch
.OpFlr,Fl-read-only
.Artitle
.Xc
.Bd-literal-compact
aliases: s
Switches from the current session to the target.
.Ed
.Pp
.Bl-tag-widthDs-compact
.ItFlr,Fl-read-only
Switch to the target session in read-only mode.
.ItArtitle
The title of the session to switch to.
.El
.ItIctitle
.Bd-literal-compact
aliases: t, which
Prints the session title.
.El
.ShENVIRONMENT
.Bl-tag-widthDs
.ItEvREMUX_ATTACH_SYMBOL
Changes the symbol displayed for attached sessions in the
.Iclist
command.
Default: '*'
.ItEvREMUX_CURRENT_SYMBOL
Changes the symbol displayed for the current session in the
.Iclist
command.
Default: '>'
.ItEvREMUX_NEW_WINDOW
Provides a default windows name when creating a new session. Unused if empty.
Default: (unset)
.El
.ShEXITSTATUS
.Bl-tag-WidthDs
.It1
Unmatched command name.
.It2
Unmatched target session.
.It3
Unmatched help topic.
.It4
Missing or invalid target; target was not given or is the same as the current session.
.It5
.Nmremux
is not running from within a terminal.
.It6
Nesting error; nest flag is missing or inappropriate.
.It7
A session command was attempted outside a session.