summaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-07-09 18:14:18 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-07-09 18:14:18 +0000
commiteee3dd297e46bb66b392826bde4441ba91c65099 (patch)
treec99b18ab660ac43ef6b20eda1e991808ddde76a6 /cmd.c
parent5afe17d147b9c156d6cf07304a63b881d0094155 (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index e7fc9eac..edce15ca 100644
--- a/cmd.c
+++ b/cmd.c
@@ -1,4 +1,4 @@
-/* $Id: cmd.c,v 1.99 2009-07-08 18:03:03 nicm Exp $ */
+/* $Id: cmd.c,v 1.100 2009-07-09 18:14:18 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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,