summaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-09 15:47:49 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-09 15:47:49 +0000
commit81181bfb72b306aed736ad7d8c9aaff0425e6730 (patch)
treee30ec82583a948da4c1ee1a465e50d56932fc284 /cmd.c
parent24e1327d0d77f0c8e022e0cd5109db321da7b324 (diff)
New command, if-shell (alias if). Executes the tmux command in the second
argument if the shell command in the first succeeds, for example: if "[ -e ~/.tmux.conf.alt ]" "source .tmux.conf.alt" Written by Tiago Cunha, many thanks.
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd.c b/cmd.c
index af520f0f..7e98f8cc 100644
--- a/cmd.c
+++ b/cmd.c
@@ -42,6 +42,7 @@ const struct cmd_entry *cmd_table[] = {
&cmd_down_pane_entry,
&cmd_find_window_entry,
&cmd_has_session_entry,
+ &cmd_if_shell_entry,
&cmd_kill_pane_entry,
&cmd_kill_server_entry,
&cmd_kill_session_entry,