Help:Alias: Difference between revisions
Appearance
Created page with "<pre style="background:#1e1e1e; color:#fff; padding:15px; overflow-x:auto; font-family:monospace;"> <span style="color:#ff00ff">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::</span> <span style="color:#00ffff"> ALIAS SYSTEM</span> <span style="color:#ff00ff">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::</span> <span style="color:#00ffff">SYNTAX:</span> <span style="color:#00ff00">alias</span..." |
No edit summary |
||
Line 1: | Line 1: | ||
<pre style="background:#1e1e1e; color:#fff; padding:15px; overflow-x:auto; font-family:monospace;"> | <html><pre style="background:#1e1e1e; color:#fff; padding:15px; overflow-x:auto; font-family:monospace;"> | ||
<span style="color:#ff00ff">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::</span> | <span style="color:#ff00ff">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::</span> | ||
<span style="color:#00ffff"> ALIAS SYSTEM</span> | <span style="color:#00ffff"> ALIAS SYSTEM</span> | ||
Line 51: | Line 51: | ||
<span style="color:#ff00ff">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::</span> | <span style="color:#ff00ff">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::</span> | ||
</pre> | </pre></html> | ||
[[Category:Help]] | [[Category:Help]] | ||
[[Main Page|← Back to Main Page]] | [[Main Page|← Back to Main Page]] |
Revision as of 03:48, 15 August 2025
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ALIAS SYSTEM ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: SYNTAX: alias - List all your aliases alias <name> - Show what an alias does alias <name> <command> - Create a new alias ralias <name> - Remove an alias DESCRIPTION: Aliases allow you to create shortcuts for commonly used commands. You can have up to 50 aliases, each up to 20 characters long. EXAMPLES: alias n north - Make 'n' move you north alias hw say hello world - Make 'hw' say "hello world" alias gs get all/sell all - Chain commands with / ARGUMENT SUBSTITUTION: $* - All arguments $1 - First argument $2 - Second argument $1- - First argument onwards $2-3 - Arguments 2 through 3 Example: alias t tell $1 $2- Usage: t bob hello there → tell bob hello there SPECIAL ALIAS - .LOGIN: The .login alias executes automatically when you log in. SYNTAX: alias .login <command1/command2/...> Commands are separated by forward slashes (/). Maximum of 8 commands in your .login alias. EXAMPLE: alias .login who/shout I'm back!/look This would: 1. Show who's online 2. Shout "I'm back!" 3. Look at your current room RESTRICTIONS: • Cannot create aliases for: alias, ralias, quit, save • Cannot create self-referencing aliases • Aliases cannot conflict with existing commands :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::