Hello friends,
I'm playing with tmux hooks for the first time and I can't seem to get the pane-died or pane-exited hook to work. I'm probably doing something wrong so I'd grateful for any pointers.
What I'm trying to do: execute a shell command (or just display-message) when the process in a pane exits.
What I've done so far (in tmux 3.3a):
$ tmux set-hook -p pane-focus-in 'display-message in'
$ tmux set-hook -p pane-focus-out 'display-message out'
$ tmux set-hook -p pane-exited 'display-message exited'
$ tmux show-hooks -p
pane-exited[0] display-message exited
pane-focus-in[0] display-message in
pane-focus-out[0] display-message out
So it looks like the hooks have been set up. However, none of them are executed, not when moving focus in or out or exiting the pane. Am I missing something here?
Cheers,
Jakob