1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-02 23:55:11 +03:00
wezterm/docs/config/lua/pane/get_current_working_dir.md
2020-10-09 23:22:52 -07:00

540 B

pane:get_current_working_dir()

Since: nightly builds only

Returns the current working directory of the pane, if known. The current directory can be specified by an application sending OSC 7.

On Linux and macOS, if OSC 7 was never sent to the pane, wezterm will attempt to inspect the cwd of the process group leader attached to the pty and use that.

If the current working directory is not known then this method returns nil. Otherwise, it returns the current working directory as a URI string.