Difference between revisions of "Shell.aliases"
From ComputerCraft Wiki
SuicidalSTDz (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=shell.aliases |args=string path |api=Shell |returns=A table containing default and set aliases. If a path is specified, it will return a tab...") |
SuicidalSTDz (Talk | contribs) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=shell.aliases | |name=shell.aliases | ||
− | |||
|api=Shell | |api=Shell | ||
− | |returns=A table containing default and set aliases. | + | |returns=A table containing default and set aliases. |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Returns a table containing the default aliases and user specified aliases | |desc=Returns a table containing the default aliases and user specified aliases | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
− | |desc=This code will | + | |desc=This code will return all set aliases |
− | |code= for k,v in pairs(shell.aliases( | + | |code= for k,v in pairs(shell.aliases()) do<br/> print(v)<br/>end |
}} | }} | ||
}} | }} | ||
[[Category:API_Functions]] | [[Category:API_Functions]] |
Revision as of 13:12, 29 March 2013
Function shell.aliases | |
Returns a table containing the default aliases and user specified aliases | |
Syntax | shell.aliases() |
Returns | A table containing default and set aliases. |
Part of | ComputerCraft |
API | Shell |
Examples
Example | |
This code will return all set aliases | |
Code |
for k,v in pairs(shell.aliases()) do |