Alias
From LSWiki
Revision as of 07:34, 13 May 2013 (edit) Tarikun (Talk | contribs) (shared and useful) ← Previous diff |
Revision as of 14:11, 16 June 2017 (edit) Fungor (Talk | contribs) (added 2 links. will add more to this page if I see relevant ones.) Next diff → |
||
Line 40: | Line 40: | ||
'''Useful User-made Aliases''' | '''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. | ||
- | [[User:Tarikun|Tarikun]] 08:34, 13 May 2013 (EDT): aalias = set shared alias $1 to $@ [USE: aalias findfood forage for food -> findfood aliased to 'forage for food' and shared] | + | [[Stride_Aliases]] [[Power_Aliases]] |
[[Category: Help Files]] | [[Category: Help Files]] | ||
[[Category: Commands]] | [[Category: Commands]] |
Revision as of 14:11, 16 June 2017
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.