Home Documentation MUF Docs GlowMUF Downloads Bug Tracking Support Requests Feature Requests
alias <alias>=<command>
alias <alias> <command>
alias <alias> = :clear
alias <alias>
Sets, clears, and lists command aliases. The first two formats sets an alias, while the third clears it. If no command is given, aliases starting with the specified alias name are listed. With no arguments all aliases are listed.
$ substitution is used to make aliases more useful. $0 is the command name, $1 is the first space-delimited argument, $9 is the 9th argument. (You can only get the first 9 arguments individually.) $* gives the full argument list without leading spaces stripped. $-0 would give the same list with the leading spaces stripped. $-1 gives all but the first argument, $-9 gives everything after the 9th argument. $$ gives a single $.
Example: alias page=$0 $1=$-1
page billy hey whacha upto? --> page billy=hey whacha upto?
Example: alias greet=:tosses $1 a big $2 in greeting.
greet bill turnip --> :tosses bill a big turnip in greeting.
Aliases only work outside of editors, and can be overridden using ! by wizards.
Glow Command: alias / Revised 2004 September 23 14:39 (Thursday)
© 2004 Glowmuck Development Group