.DT alias $MUDNAME$ player help alias .SH Name .SI 5 alias - The $MUDNAME$ alias system .EI .SH Syntax .SI 5 alias [<name> [<definition>]] unalias <name> .EI .SH Description .SI 5 %^BOLD%^alias%^RESET%^ [<name> [<definition>]] .EI .SP 7 5 The alias comand has four different formats. The first format, alias on a line by itself, will show all your currently defined aliases in a nice formated output. The second format alias with a name after it will show you what you have defined name to be be. The third format, alias with part of a name after it will show all your currently defined aliases that start with the text given. The fourth format, alias <name> <definition> will set name to the definition you have passed to it. There is a special alias that is called on login, called 'login'. If you alias this to something it will be run as soon as you login. The plan and project information for finger is done inside the alias command. These are the aliases .plan and .project. If you want a signature appended to your mails and posts to boards create an alias of .signature. .EP .SI 5 %^BOLD%^unalias%^RESET%^ <name> .EI .SP 7 5 Unalias is used to delete aliases from your list. unalias <name> will delete the alias of the given name. .EP .SH Format of the definition string. .SP 5 5 The rest of the command line is automagicly appended to the end of the last line in your alias file. However for more functionality the following are added (BTW if you use one of these commands, the rest of the command line is not appended) .EP .SO 5 25 -35 $*$ will be replaced with all of the argument string. $1$ will be replaced with the first argument. $1*$ will be replaced with the all the command line from the first agument inclusive. $*2$ will be replaced with all the command line up to and includeing the second argument. $arg:frog$ will be replaced with the argument to the alias or if none is defined will be replaced with frog $arg1:frog$ will be replaced with the 1st comand line argument (if it exists) or if none is give is replaced with frog. $ifarg:c1$else$c2$endif$ pretty obvious. $ifarg2:c1$else$c2$endif$ as above. ; will insert a carriage return into the line. \; will insert a ; into the line. .EO share and enjoy .SH Example .SI 5 > alias la: look at $*$ b:bounce gr: grin > alias la la: look at $*$ > alias l look Ok > alias la: look at $*$ b: bounce gr: grin l: look > unalias b Ok > alias la look at $*$ gr:grin l:look > alias p poke $arg:shiannar$ Ok > p You poke Shiannar. > p shadow You poke Shadow. > la fish You see a nice litle fish lying on the ground gasping for air. > alias bing bounce;smile;grin Ok > bing B O I N G !! You smile. You grin. > For a more complicated alias try this one > alias l look$ifarg: at $*$$endif$ > l fish You see a nice little fish > l Description of the room. .EI .SH Abbreviation .SP 5 5 Alias abbreviates to "al". .EP .SH See also .SP 5 5 nickname, ealias, qalias, unalias, finger .EP