Difference between revisions of "Shell.setAlias"
From ComputerCraft Wiki
TheVarmari (Talk | contribs) (Added function page) |
m (Category operation: +Category:API_Functions) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Function | {{Function | ||
|name=shell.setAlias | |name=shell.setAlias | ||
| − | |args= {{type|string}} alias | + | |args= {{type|string}} alias, {{type|string}} program |
|api=shell | |api=shell | ||
|returns=[[nil]] | |returns=[[nil]] | ||
| Line 14: | Line 14: | ||
* It does not output anything, it just sets the alias. | * It does not output anything, it just sets the alias. | ||
}} | }} | ||
| + | |||
| + | [[Category:API_Functions]] | ||
Latest revision as of 05:07, 20 May 2013
| Sets an alias. | |
| Syntax | shell.setAlias(string alias, string program) |
| Returns | nil |
| Part of | ComputerCraft |
| API | shell |
Examples
| Sets the alias for program "startup". | |
| Code |
shell.setAlias("start", "startup")
|
Additional Notes
- It does not output anything, it just sets the alias.