Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

NewSessionOptions.start_directory

Set the working directory for the session's first window.

Source and package
Qualified name
libtmux::server::NewSessionOptions::start_directory
Module
server
Declared in
NewSessionOptions
Package
libtmux
Source
crates/libtmux/src/server.rs
pub fn start_directory( mut self, directory: impl Into<TmuxArg> ) -> Self

Description#

The directory is sent literally. TmuxArg::format() opts into expansion, which is how #{pane_current_path} is asked for.

Parameters
Esc

Type to search.

Reference previewOpen reference