shell.aliases

From ComputerCraft Wiki
Revision as of 12:36, 3 May 2013 by TheCoryKid (Talk | contribs)

Jump to: navigation, search


Grid Redstone.png  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

Grid paper.png  Example
This code will return all set aliases and the programs they refer to.
Code
for k,v in pairs(shell.aliases()) do
print(k.." : "..v)
end