=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.1,v retrieving revision 1.525 retrieving revision 1.526 diff -u -r1.525 -r1.526 --- src/usr.bin/tmux/tmux.1 2017/01/13 10:12:12 1.525 +++ src/usr.bin/tmux/tmux.1 2017/01/24 19:53:37 1.526 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.525 2017/01/13 10:12:12 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.526 2017/01/24 19:53:37 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 13 2017 $ +.Dd $Mdocdate: January 24 2017 $ .Dt TMUX 1 .Os .Sh NAME @@ -2410,6 +2410,30 @@ 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