Alias

From LSWiki

Revision as of 15:11, 16 June 2017; Fungor (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Jump to: navigation, search

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


Sharing your Aliases

You can share your aliases across all your incarni by using 'start sharing alias <name|pattern>'. If you already have a bunch of aliases that you don't want to manually input, 'start sharing alias *' will share them all.


Useful User-made Aliases

This is a fairly extensive topic and needs a pretty significant amount of work to effectively display. For now, adding links to up interconnectivity.

Stride_Aliases

Power_Aliases

Personal tools