shell.aliases

From ComputerCraft
Jump to: navigation, search

shell.aliases
Function
Syntax
shell.aliases()
Returns table
API shell
Source CC:Tweaked (source)

Returns a list of all aliases.

ExampleExamplePrint all aliases
Print all aliases.
Code
for alias,program in pairs(shell.aliases()) do
  print(alias..": "..program)
end
Output rm: delete

dir: list
clr: clear
sh: shell
ls: list
cp: copy
foreground: fg
background: bg
mv: move

rs: redstone