# /alias

Usage:

/REQUIRE alias.tf

/ALIAS [name [command]]
/UNALIAS name
/PURGEALIAS

With no arguments, /alias lists all aliases. With a name argument, /alias lists the alias with names that match the glob pattern name. Otherwise, /alias defines name as an alias for command.

/Unalias undefines an alias for name that was defined with /alias.

/Purgealias undefines all aliases defined with /alias. Note that /purgealias does not take a pattern argument.

To use an alias, just type its name followed by any optional arguments. Unlike macros defined with /def, you do not type '/' before name to execute an alias. Argument substitution in aliases works the same as in macros.

As of 3.5 alpha 11, aliases can be called from other aliases or macros. To send a line of text to the server without alias calls, use send(). If an old alias that used to work now results in "Too many recursions", you need to rewrite the alias to use send().

Using /def instead of /alias is recommended.

See: /def, macros, substitution, tfrc

Back to index
Back to tf home page

Copyright © 1995, 1996, 1997, 1998, 1999, 2002, 2003 Ken Keys