summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-if-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/cmd-if-shell.c')
-rw-r--r--usr.bin/tmux/cmd-if-shell.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr.bin/tmux/cmd-if-shell.c b/usr.bin/tmux/cmd-if-shell.c
index b821fe0204c..a6b4cfd3c2e 100644
--- a/usr.bin/tmux/cmd-if-shell.c
+++ b/usr.bin/tmux/cmd-if-shell.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-if-shell.c,v 1.38 2015/12/13 14:32:38 nicm Exp $ */
+/* $OpenBSD: cmd-if-shell.c,v 1.39 2015/12/13 21:53:57 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -36,11 +36,15 @@ void cmd_if_shell_done(struct cmd_q *);
void cmd_if_shell_free(void *);
const struct cmd_entry cmd_if_shell_entry = {
- "if-shell", "if",
- "bFt:", 2, 3,
- "[-bF] " CMD_TARGET_PANE_USAGE " shell-command command [command]",
- CMD_PANE_T|CMD_CANFAIL,
- cmd_if_shell_exec
+ .name = "if-shell",
+ .alias = "if",
+
+ .args = { "bFt:", 2, 3 },
+ .usage = "[-bF] " CMD_TARGET_PANE_USAGE " shell-command command "
+ "[command]",
+
+ .flags = CMD_PANE_T|CMD_CANFAIL,
+ .exec = cmd_if_shell_exec
};
struct cmd_if_shell_data {