libtmux Reference MCP Search
On this page

LibTmux.Internal.StartDirectory

View as Markdown

Module
LibTmux.Internal
Package
LibTmux
Source
src/LibTmux/Internal/StartDirectory.cs
class LibTmux.Internal.StartDirectory
classstatic [source]
classstatic [source]
class LibTmux.Internal.StartDirectory

Prepares a tmux -c start-directory value.

tmux hands the value straight to chdir, so a leading ~ is not a home directory to it: the call fails and tmux silently falls back to its own default, leaving the pane somewhere the caller never asked for. Only a shell expands the tilde, and there is no shell in this path.

tmux also expands the value as a format, in the spawn path every command that takes -c shares, so a # in it does not reach chdir.

1 declared, 0 inherited

Members

  • Resolve method Resolves one start directory, or null when there is nothing to send.
Esc

Type to search.