summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2018-07-04 12:30:53 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2018-07-04 12:30:53 +0000
commit103f70c7a5df37a37daa355f32f4f8c8fbe8aaec (patch)
treeeb89f0d988e8263149b0faf0cbcdf70c415e9f1e /usr.bin/tmux/tmux.1
parente6490f6d818e471afe26ad2551f3dc3c4ecc57b4 (diff)
Add set-hook -R to run a hook immediately (useful to set multiple hooks
to the same thing).
Diffstat (limited to 'usr.bin/tmux/tmux.1')
-rw-r--r--usr.bin/tmux/tmux.114
1 files changed, 11 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1
index 678a374d00a..17af06607ca 100644
--- a/usr.bin/tmux/tmux.1
+++ b/usr.bin/tmux/tmux.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmux.1,v 1.603 2018/07/04 12:25:26 nicm Exp $
+.\" $OpenBSD: tmux.1,v 1.604 2018/07/04 12:30:52 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
.\"
@@ -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