diff options
author | 2009-10-11 10:04:27 +0000 | |
---|---|---|
committer | 2009-10-11 10:04:27 +0000 | |
commit | 095994ac926c64243dddbe6924b1e7029ac4386e (patch) | |
tree | 68cb2860035914762eb7ab24c561913d0d352718 /usr.bin/tmux/cmd.c | |
parent | Convert if-shell over to the background job framework as well. (diff) | |
download | wireguard-openbsd-095994ac926c64243dddbe6924b1e7029ac4386e.tar.xz wireguard-openbsd-095994ac926c64243dddbe6924b1e7029ac4386e.zip |
Add a pipe-pane command to allow a pane to be piped to a shell command, for
example:
pipe-pane 'cat >~/out'
No arguments stops outputing and closes the pipe; the -o flag toggles a pipe
and on and off (useful for key bindings).
Suggested by espie@.
Diffstat (limited to 'usr.bin/tmux/cmd.c')
-rw-r--r-- | usr.bin/tmux/cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c index 8b8f07f60d6..e2d290840b7 100644 --- a/usr.bin/tmux/cmd.c +++ b/usr.bin/tmux/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.23 2009/10/10 17:19:38 nicm Exp $ */ +/* $OpenBSD: cmd.c,v 1.24 2009/10/11 10:04:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -71,6 +71,7 @@ const struct cmd_entry *cmd_table[] = { &cmd_next_layout_entry, &cmd_next_window_entry, &cmd_paste_buffer_entry, + &cmd_pipe_pane_entry, &cmd_previous_layout_entry, &cmd_previous_window_entry, &cmd_refresh_client_entry, |