aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.112
1 files changed, 10 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 303a4a30..3b7bda34 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3452,12 +3452,14 @@ Run when a window is unlinked from a session.
Hooks are managed with these commands:
.Bl -tag -width Ds
.It Xo Ic set-hook
-.Op Fl gu
+.Op Fl gRu
.Op Fl t Ar target-session
.Ar hook-name
.Ar command
.Xc
-Sets (or with
+Without
+.Fl R,
+sets (or with
.Fl u
unsets) hook
.Ar hook-name
@@ -3473,6 +3475,12 @@ hooks (for
with
.Fl t ) .
Like options, session hooks inherit from the global ones.
+.Pp
+With
+.Fl R ,
+run
+.Ar hook-name
+immediately.
.It Xo Ic show-hooks
.Op Fl g
.Op Fl t Ar target-session