summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2022-11-11 08:27:17 +0000
committernicm <nicm>2022-11-11 08:27:17 +0000
commit079f48e8a6131b2ef46b370c0905252d29d9d815 (patch)
tree36d1303e95a57e461fb725e5f57f6654a26459ca /tmux.1
parent48f41e4a411dc8dc77514e211293365ee8394792 (diff)
Document alternative delimiters for substitution, from Jim Wisniewski.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.19
1 files changed, 9 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index 887608cb..52a20266 100644
--- a/tmux.1
+++ b/tmux.1
@@ -5080,6 +5080,15 @@ would change
.Ql abABab
into
.Ql bxBxbx .
+A different delimiter character may also be used, to avoid collisions with
+literal slashes in the pattern.
+For example,
+.Ql s|foo/|bar/|:
+will substitute
+.Ql foo/
+with
+.Ql bar/
+throughout.
.Pp
In addition, the last line of a shell command's output may be inserted using
.Ql #() .