=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.1,v retrieving revision 1.106 retrieving revision 1.107 diff -u -r1.106 -r1.107 --- src/usr.bin/tmux/tmux.1 2009/10/11 08:58:05 1.106 +++ src/usr.bin/tmux/tmux.1 2009/10/11 10:04:27 1.107 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.106 2009/10/11 08:58:05 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.107 2009/10/11 10:04:27 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" @@ -840,6 +840,30 @@ If .Fl a is used, move to the next window with a bell, activity or content alert. +.It Xo Ic pipe-pane +.Op Fl o +.Op Fl t Ar target-pane +.Op Ar command +.Xc +.D1 (alias: Ic pipep ) +Pipe any output sent by the program in +.Ar target-pane +to a shell command. +A pane may only be piped to one command at a time, any existing pipe is +closed before +.Ar command +is executed. +If no +.Ar command +is given, the current pipe (if any) is closed. +.Pp +The +.Fl o +option only opens a new pipe if no previous pipe exists, allowing a pipe to +be toggled with a single key, for example: +.Bd -literal -offset indent +bind-key C-p pipe-pane -o 'cat >>~/output' +.Ed .It Xo Ic previous-window .Op Fl a .Op Fl t Ar target-session