aboutsummaryrefslogtreecommitdiff
path: root/cmd-if-shell.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-12-13 23:46:58 +0000
committerThomas Adam <thomas@xteddy.org>2015-12-13 23:46:58 +0000
commit5caec3020d32596f3ecf3dea68639da18690992d (patch)
treeda0cde36d73215aa603d1897279aa9431f403d06 /cmd-if-shell.c
parentf4adcfa0e2f4451616738a8c65f9eef2855fc757 (diff)
parentecfeee2e8255a77f82a07124c93c8dbc7683c421 (diff)
downloadrtmux-5caec3020d32596f3ecf3dea68639da18690992d.tar.gz
rtmux-5caec3020d32596f3ecf3dea68639da18690992d.tar.bz2
rtmux-5caec3020d32596f3ecf3dea68639da18690992d.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r--cmd-if-shell.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index 404f4671..4c2cacb1 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -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 {