version 1.34, 2013/10/10 12:26:35 |
version 1.35, 2013/10/10 12:35:31 |
|
|
format_add(ft, "pane_start_command", "%s", wp->cmd); |
format_add(ft, "pane_start_command", "%s", wp->cmd); |
if ((cwd = get_proc_cwd(wp->fd)) != NULL) |
if ((cwd = get_proc_cwd(wp->fd)) != NULL) |
format_add(ft, "pane_current_path", "%s", cwd); |
format_add(ft, "pane_current_path", "%s", cwd); |
if ((cmd = get_proc_name(wp->fd, wp->tty)) != NULL) { |
if ((cmd = format_get_command(wp)) != NULL) { |
format_add(ft, "pane_current_command", "%s", cmd); |
format_add(ft, "pane_current_command", "%s", cmd); |
free(cmd); |
free(cmd); |
} |
} |