summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-10-11 10:04:27 +0000
committernicm <nicm@openbsd.org>2009-10-11 10:04:27 +0000
commit095994ac926c64243dddbe6924b1e7029ac4386e (patch)
tree68cb2860035914762eb7ab24c561913d0d352718 /usr.bin/tmux/cmd.c
parentConvert if-shell over to the background job framework as well. (diff)
downloadwireguard-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.c3
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,