[BACK]Return to tmux.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/tmux.1 between version 1.504 and 1.505

version 1.504, 2016/10/13 21:37:03 version 1.505, 2016/10/13 22:48:51
Line 3204 
Line 3204 
 .Nm  .Nm
 allows commands to run on various triggers, called  allows commands to run on various triggers, called
 .Em hooks .  .Em hooks .
 Each  Most
 .Nm  .Nm
 command has a  commands have an
 .Em before  
 hook and an  
 .Em after  .Em after
 hook and there are a number of hooks not associated with commands.  hook and there are a number of hooks not associated with commands.
 .Pp  .Pp
 A command's before hook is run before the command is executed and its after  A command's after
 hook is run afterwards, except when the command is run as part of a hook  hook is run after it completes, except when the command is run as part of a hook
 itself.  itself.
 Before hooks are named using the  They are named with an
 .Ql before-  
 prefix and after hooks the  
 .Ql after-  .Ql after-
 prefix.  prefix.
 For example, the following command adds a hook to select the even-vertical  For example, the following command adds a hook to select the even-vertical
Line 3225 
Line 3221 
 .Ic split-window :  .Ic split-window :
 .Bd -literal -offset indent  .Bd -literal -offset indent
 set-hook after-split-window "selectl even-vertical"  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  .Ed
 .Pp  .Pp
 In addition, the following hooks are available:  In addition, the following hooks are available:

Legend:
Removed from v.1.504  
changed lines
  Added in v.1.505