From d15d54c2c8e6b95695169442eb2a27d814efc078 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 16 Oct 2016 19:55:52 +0000 Subject: Add hook_session and hook_window formats to get information on the affected session or window when a hook fires. Enable session-created and session-closed hooks now that that is available. --- tmux.1 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index 88697bcf..e13b5573 100644 --- a/tmux.1 +++ b/tmux.1 @@ -3244,6 +3244,10 @@ Run when the program running in a pane exits, but is on so the pane has not closed. .It pane-exited Run when the program running in a pane exits. +.It session-created +Run when a new session created. +.It session-closed +Run when a session closed. .It session-renamed Run when a session is renamed. .It window-renamed @@ -3467,6 +3471,10 @@ The following variables are available, where appropriate: .It Li "history_limit" Ta "" Ta "Maximum window history lines" .It Li "history_size" Ta "" Ta "Size of history in bytes" .It Li "hook" Ta "" Ta "Name of running hook, if any" +.It Li "hook_session" Ta "" Ta "ID of session where hook was run, if any" +.It Li "hook_session_name" Ta "" Ta "Name of session where hook was run, if any" +.It Li "hook_window" Ta "" Ta "ID of window where hook was run, if any" +.It Li "hook_window_name" Ta "" Ta "Name of window where hook was run, if any" .It Li "host" Ta "#H" Ta "Hostname of local host" .It Li "host_short" Ta "#h" Ta "Hostname of local host (no domain name)" .It Li "insert_flag" Ta "" Ta "Pane insert flag" -- cgit