=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.1,v retrieving revision 1.504 retrieving revision 1.505 diff -c -r1.504 -r1.505 *** src/usr.bin/tmux/tmux.1 2016/10/13 21:37:03 1.504 --- src/usr.bin/tmux/tmux.1 2016/10/13 22:48:51 1.505 *************** *** 1,4 **** ! .\" $OpenBSD: tmux.1,v 1.504 2016/10/13 21:37:03 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" --- 1,4 ---- ! .\" $OpenBSD: tmux.1,v 1.505 2016/10/13 22:48:51 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" *************** *** 3204,3223 **** .Nm allows commands to run on various triggers, called .Em hooks . ! Each .Nm ! command has a ! .Em before ! hook and 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 itself. ! Before hooks are named using the ! .Ql before- ! prefix and after hooks the .Ql after- prefix. For example, the following command adds a hook to select the even-vertical --- 3204,3219 ---- .Nm allows commands to run on various triggers, called .Em hooks . ! Most .Nm ! commands have an .Em after hook and there are a number of hooks not associated with commands. .Pp ! A command's after ! hook is run after it completes, except when the command is run as part of a hook itself. ! They are named with an .Ql after- prefix. For example, the following command adds a hook to select the even-vertical *************** *** 3225,3235 **** .Ic split-window : .Bd -literal -offset indent 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: --- 3221,3226 ----