Alias

From LSWiki

(Difference between revisions)
Jump to: navigation, search

Revision as of 01:20, 24 February 2009

Alias

Clear Alias

Usage: clear alias <name>

  • Removes the specified alias from your list.

See Also: set alias, show alias, show aliases, show local aliases, show shared aliases, start sharing alias, stop sharing alias, history


Set Alias

Usage: set alias <name> to <command>

  • Creates a command alias. Once created, you can type the name of the alias and the full command will be executed. There are two kinds of alias: local and shared. Local aliases only apply to this character; shared aliases are carried across all characters on your atman. You can have a maximum of one hundred local aliases and two hundred shared aliases.
  • Beyond the basic syntax that simply replaces one command with another, you can also have an alias execute multiple commands using semicolons to separate the commands. So 'set alias whee to jump;spin' would cause you to execute the commands 'jump' and 'spin' when you typed 'whee'. A given alias can contain a maximum of twenty actions. You can use \; to put in a regular semicolon instead of a multiple command break.
  • You can also manage arguments passed to the alias using $1 through $9, $*, and $@, along the lines of Unix shell scripts. $1 through $9 refer to the first through ninth arguments, $* refers to all arguments, and $@ refers to all arguments not otherwise referenced. So if you were to 'set alias ang to say $* in anglic', then typing 'ang Hi!' would result in the command 'say Hi! in anglic'.

See Also: show alias, clear alias, show aliases, show local aliases, show shared aliases, start sharing alias, stop sharing alias, history


Show Alias

Usage: show alias <name>

  • Displays the specified alias, along with whether it is local or shared and the full command associated with it.

See Also: set alias, clear alias, show aliases, show local aliases, show shared aliases, start sharing alias, stop sharing alias

Personal tools