Skip to content

Attach new tab/pane to existing window? #1017

Answered by wez
lycurgus asked this question in Q&A
Discussion options

You must be logged in to vote

Each instance of wezterm listens on a unix domain socket. Processes spawned by that wezterm have environment variables set that wezterm cli can use to locate and talk to that instance:

; env | grep WEZTERM
..
WEZTERM_PANE=2
WEZTERM_UNIX_SOCKET=/Users/wez/.local/share/wezterm/gui-sock-50325

If you know the WEZTERM_UNIX_SOCKET for the instance you want, then you could set that explicitly.

There isn't a mechanism that can conveniently enumerate those at this time.

However, if you configure Multiplexing with a unix domain socket then you can run a central wezterm-mux-server process and then have your wezterm GUI instances all talk to that. The multiplexer socket location is configured in the …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lycurgus
Comment options

@wez
Comment options

Answer selected by lycurgus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants