version 1.48, 2017/04/21 20:26:34 |
version 1.49, 2017/04/22 10:22:39 |
|
|
.args = { "bt:", 1, 1 }, |
.args = { "bt:", 1, 1 }, |
.usage = "[-b] " CMD_TARGET_PANE_USAGE " shell-command", |
.usage = "[-b] " CMD_TARGET_PANE_USAGE " shell-command", |
|
|
.tflag = CMD_PANE_CANFAIL, |
.target = { 't', CMD_FIND_PANE, CMD_FIND_CANFAIL }, |
|
|
.flags = 0, |
.flags = 0, |
.exec = cmd_run_shell_exec |
.exec = cmd_run_shell_exec |
|
|
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
struct cmd_run_shell_data *cdata; |
struct cmd_run_shell_data *cdata; |
struct client *c = item->state.c; |
struct client *c = cmd_find_client(item, NULL, 1); |
struct session *s = item->state.tflag.s; |
struct session *s = item->target.s; |
struct winlink *wl = item->state.tflag.wl; |
struct winlink *wl = item->target.wl; |
struct window_pane *wp = item->state.tflag.wp; |
struct window_pane *wp = item->target.wp; |
const char *cwd; |
const char *cwd; |
|
|
if (item->client != NULL && item->client->session == NULL) |
if (item->client != NULL && item->client->session == NULL) |