ComputerCraft Archive

Mildly Better Shell - various extensions to the default shel

computer operating-system unknown forum-inline

Description

Mildly Better Shell (or mbs for short) is a series of extensions to the default shell which make it, well, mildly better. Heavily inspired by ClamShell, it aims to augment the existing environment wit...

Installation

Copy one of these commands into your ComputerCraft terminal:

wget:wget https://cc.shobie.xyz/cc/get/forum-inline-awygbm90-mkzdmosi mildly_better_shell_-_various_extensions_to_the_default_shel
Archive:wget https://cc.shobie.xyz/cc/get/forum-inline-awygbm90-mkzdmosi mildly_better_shell_-_various_extensions_to_the_default_shel
Quick Install: wget https://cc.shobie.xyz/cc/get/forum-inline-awygbm90-mkzdmosi Mildly Better Shell - various extensions to the default shel

Usage

Run the program after downloading

Tags

foruminline

Source

View Original Source

Code Preview

if not fs.exists("/.mbs") then --# we assume that this is a new computer if the folder is not pressent, additionally we can reinstall by deleting this folder.
    shell.run("copy /rom/.mbs /.mbs")

    --# add on the end of the startup file a command to start mbs
    local f = fs.open("/startup", "a")
    f.writeLine("\nshell.run(\"rom/programs/mbs.lua startup\")")
    f.close()
end