aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-10-14 02:01:14 +0100
committerThomas Adam <thomas@xteddy.org>2016-10-14 02:01:14 +0100
commit117737c6cae90d8c53c73fd2440eec17def10bb1 (patch)
treebcc25aa554c0c0ce9456c629e29dc5d58ba54df0 /tmux.1
parenta7ce19347a81282b82db1663eed5fd8dd00e927f (diff)
parent4289a1ebfa7479413ec5ac543b88c4ea039d00a0 (diff)
downloadrtmux-117737c6cae90d8c53c73fd2440eec17def10bb1.tar.gz
rtmux-117737c6cae90d8c53c73fd2440eec17def10bb1.tar.bz2
rtmux-117737c6cae90d8c53c73fd2440eec17def10bb1.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.119
1 files changed, 5 insertions, 14 deletions
diff --git a/tmux.1 b/tmux.1
index 2ad45dec..2e6ab334 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3208,20 +3208,16 @@ shows only the option value, not the name.
.Nm
allows commands to run on various triggers, called
.Em hooks .
-Each
+Most
.Nm
-command has a
-.Em before
-hook and an
+commands have an
.Em after
hook and there are a number of hooks not associated with commands.
.Pp
-A command's before hook is run before the command is executed and its after
-hook is run afterwards, except when the command is run as part of a hook
+A command's after
+hook is run after it completes, except when the command is run as part of a hook
itself.
-Before hooks are named using the
-.Ql before-
-prefix and after hooks the
+They are named with an
.Ql after-
prefix.
For example, the following command adds a hook to select the even-vertical
@@ -3231,11 +3227,6 @@ layout after every
set-hook after-split-window "selectl even-vertical"
.Ed
.Pp
-Or to write when each new window is created to a file:
-.Bd -literal -offset indent
-set-hook before-new-window 'run "date >>/tmp/log"'
-.Ed
-.Pp
In addition, the following hooks are available:
.Bl -tag -width "XXXXXXXXXXXXXXXX"
.It alert-activity