-
I'd like to be able to run a command outside of my wezterm instance (e.g. via a hotkey or I don't have multiplexing set up, but from what I've seen so far, things like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Each instance of wezterm listens on a unix domain socket. Processes spawned by that wezterm have environment variables set that ; env | grep WEZTERM
..
WEZTERM_PANE=2
WEZTERM_UNIX_SOCKET=/Users/wez/.local/share/wezterm/gui-sock-50325 If you know the 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 |
Beta Was this translation helpful? Give feedback.
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: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 …