Shell.setAlias

From ComputerCraft Wiki
Revision as of 02:10, 12 May 2013 by TheVarmari (Talk | contribs) (Added function page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Grid Redstone.png  Function shell.setAlias
Sets an alias.
Syntax shell.setAlias(string alias [, string program])
Returns nil
Part of ComputerCraft
API shell

Examples

Grid paper.png  Example
Sets the alias for program "startup".
Code
shell.setAlias("start", "startup")

Additional Notes

  • It does not output anything, it just sets the alias.