summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2014-12-02 23:39:02 +0000
committernicm <nicm>2014-12-02 23:39:02 +0000
commit54ca7b230d08aae0b2028f3f82a259963017c167 (patch)
treeba10110139e2835ef0cadfa0250f0c5a27dfcb5c /tmux.1
parent575fd1e322b15a3e9f0d1892ebb82c2e8a30ba46 (diff)
Add -F to if-shell to allow it to be used to check for format or option
values rather than executing a command.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.113
1 files changed, 11 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 949a77b0..63ab82ba 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3589,7 +3589,7 @@ Miscellaneous commands are as follows:
.It Ic clock-mode Op Fl t Ar target-pane
Display a large clock.
.It Xo Ic if-shell
-.Op Fl b
+.Op Fl bF
.Op Fl t Ar target-pane
.Ar shell-command command
.Op Ar command
@@ -3602,7 +3602,9 @@ if
returns success or the second
.Ar command
otherwise.
-Before being executed, shell-command is expanded using the rules specified in the
+Before being executed,
+.Ar shell-command
+is expanded using the rules specified in the
.Sx FORMATS
section, including those relevant to
.Ar target-pane .
@@ -3610,6 +3612,13 @@ With
.Fl b ,
.Ar shell-command
is run in the background.
+.Pp
+If
+.Fl F
+is given,
+.Ar shell-command
+is not executed but considered success if neither empty nor zero (after formats
+are expanded).
.It Ic lock-server
.D1 (alias: Ic lock )
Lock each client individually by running the command specified by the