shell.aliases

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function shell.aliases
Returns a table containing the default aliases and any user-specified aliases. The key of each entry is the 'alias name', and the value the physical program.
Syntax shell.aliases()
Returns A table containing default and user-specified program 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 alias, programName in pairs(shell.aliases()) do
print(alias .. " => " .. programName)
end
Output
mv => move
dir => list
cp => copy
rm => delete
ls => list
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox