diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-09 18:14:18 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-09 18:14:18 +0000 |
commit | eee3dd297e46bb66b392826bde4441ba91c65099 (patch) | |
tree | c99b18ab660ac43ef6b20eda1e991808ddde76a6 /tmux.h | |
parent | 5afe17d147b9c156d6cf07304a63b881d0094155 (diff) | |
download | rtmux-eee3dd297e46bb66b392826bde4441ba91c65099.tar.gz rtmux-eee3dd297e46bb66b392826bde4441ba91c65099.tar.bz2 rtmux-eee3dd297e46bb66b392826bde4441ba91c65099.zip |
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 'tmux.h')
-rw-r--r-- | tmux.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.352 2009-07-09 18:04:17 nicm Exp $ */ +/* $Id: tmux.h,v 1.353 2009-07-09 18:14:18 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1100,6 +1100,7 @@ extern const struct cmd_entry cmd_detach_client_entry; extern const struct cmd_entry cmd_down_pane_entry; extern const struct cmd_entry cmd_find_window_entry; extern const struct cmd_entry cmd_has_session_entry; +extern const struct cmd_entry cmd_if_shell_entry; extern const struct cmd_entry cmd_kill_pane_entry; extern const struct cmd_entry cmd_kill_server_entry; extern const struct cmd_entry cmd_kill_session_entry; |