aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
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 /tmux.1
parent24e1327d0d77f0c8e022e0cd5109db321da7b324 (diff)
downloadrtmux-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.1')
-rw-r--r--tmux.110
1 files changed, 10 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index 31e94d62..a6ccd459 100644
--- a/tmux.1
+++ b/tmux.1
@@ -711,6 +711,16 @@ This command only works from inside
.D1 (alias: Ic has )
Report an error and exit with 1 if the specified session does not exist.
If it does exist, exit with 0.
+.It Xo Ic if-shell
+.Ar shell-command
+.Ar command
+.Xc
+.D1 (alias: Ic if )
+Execute
+.Ar command
+if
+.Ar shell-command
+returns success.
.It Xo Ic kill-pane
.Op Fl p Ar pane-index
.Op Fl t Ar target-window