diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-09 15:47:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-09 15:47:49 +0000 |
commit | 81181bfb72b306aed736ad7d8c9aaff0425e6730 (patch) | |
tree | e30ec82583a948da4c1ee1a465e50d56932fc284 /tmux.h | |
parent | 24e1327d0d77f0c8e022e0cd5109db321da7b324 (diff) | |
download | rtmux-81181bfb72b306aed736ad7d8c9aaff0425e6730.tar.gz rtmux-81181bfb72b306aed736ad7d8c9aaff0425e6730.tar.bz2 rtmux-81181bfb72b306aed736ad7d8c9aaff0425e6730.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 | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1101,6 +1101,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; |