aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2017-01-24 19:53:37 +0000
committernicm <nicm>2017-01-24 19:53:37 +0000
commit85338bb75fa4fbabfdbefeb995bdea04efaf2db4 (patch)
treeb5780e6de5d37e5243684dc94fcf4394e81e6683 /tmux.1
parent61fce272ea60f5096711ee554c56aef9cca8c654 (diff)
downloadrtmux-85338bb75fa4fbabfdbefeb995bdea04efaf2db4.tar.gz
rtmux-85338bb75fa4fbabfdbefeb995bdea04efaf2db4.tar.bz2
rtmux-85338bb75fa4fbabfdbefeb995bdea04efaf2db4.zip
Add support for custom command aliases, this is an array option which
contains items of the form "alias=command". This is consulted when an unknown command is parsed.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.124
1 files changed, 24 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index b641909f..61396fbd 100644
--- a/tmux.1
+++ b/tmux.1
@@ -2410,6 +2410,30 @@ Available server options are:
Set the number of buffers; as new buffers are added to the top of the stack,
old ones are removed from the bottom if necessary to maintain this maximum
length.
+.It Xo Ic command-alias[]
+.Ar name=value
+.Xc
+This is an array of custom aliases for commands.
+If an unknown command matches
+.Ar name ,
+it is replaced with
+.Ar value .
+For example, after:
+.Pp
+.Dl set -s command-alias[2] zoom='resize-pane -Z'
+.Pp
+Using:
+.Pp
+.Dl zoom -t:.1
+.Pp
+Is equivalent to:
+.Pp
+.Dl resize-pane -Z -t:.1
+.Pp
+Note that aliases are expanded when a command is parsed rather than when it is
+executed, so binding an alias with
+.Ic bind-key
+will bind the expanded form.
.It Ic default-terminal Ar terminal
Set the default terminal for new windows created in this session - the
default value of the