shell.setAlias

shell.setAlias
Function
Syntax
shell.setAlias(
  • alias : string
  • program : string
)

Returns nil
API shell
Source CC:Tweaked (source)

Set an alias.

ExampleSet an Alias
Set "rd" as alias for "redirection".
Code
<nowiki>
shell.setAlias("rd", "redirection")
  </nowiki>
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.