aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-23 19:24:42 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-23 19:24:42 +0000
commit497b27dafb7f531db3b82d6bf061279c599e69ae (patch)
treedf7c47e248e38e036a32d1c2381292cea17d6f91 /tmux.1
parent357da035b9d052b4cba8db806c6237272ade6673 (diff)
downloadrtmux-497b27dafb7f531db3b82d6bf061279c599e69ae.tar.gz
rtmux-497b27dafb7f531db3b82d6bf061279c599e69ae.tar.bz2
rtmux-497b27dafb7f531db3b82d6bf061279c599e69ae.zip
Expand format variables in the run-shell and if-shell shell commands, from
Thiago Padilha.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.114
1 files changed, 13 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index 882a71f8..cf332511 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3468,7 +3468,11 @@ Miscellaneous commands are as follows:
.Bl -tag -width Ds
.It Ic clock-mode Op Fl t Ar target-pane
Display a large clock.
-.It Ic if-shell Ar shell-command command Op Ar command
+.It Xo Ic if-shell
+.Op Fl t Ar target-pane
+.Ar shell-command command
+.Op Ar command
+.Xc
.D1 (alias: Ic if )
Execute the first
.Ar command
@@ -3477,6 +3481,10 @@ if
returns success or the second
.Ar command
otherwise.
+Before being executed, shell-command is expanded using the rules specified in the
+.Sx FORMATS
+section, including those relevant to
+.Ar target-pane .
.It Ic lock-server
.D1 (alias: Ic lock )
Lock each client individually by running the command specified by the
@@ -3490,6 +3498,10 @@ option.
Execute
.Ar shell-command
in the background without creating a window.
+Before being executed, shell-command is expanded using the rules specified in
+the
+.Sx FORMATS
+section.
After it finishes, any output to stdout is displayed in copy mode (in the pane
specified by
.Fl t