From a2c8f0c65509c154ae75be976297648267425b5b Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Thu, 5 Dec 2019 11:37:31 -0700 Subject: [PATCH] cash alternative shell added --- cash/.package | 30 ++++++++++++++++++++++++++++++ cash/etc/apps.db | 7 +++++++ cash/etc/fstab | 1 + common/etc/fstab | 4 +++- 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 cash/.package create mode 100644 cash/etc/apps.db create mode 100644 cash/etc/fstab diff --git a/cash/.package b/cash/.package new file mode 100644 index 0000000..b7a2cec --- /dev/null +++ b/cash/.package @@ -0,0 +1,30 @@ +{ + title = 'ComputerCraft Advanced Shell', + repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/cash', + description = [[A Bourne-compatible shell for ComputerCraft. + +Features +Bash/sh-style command line +Tab completion (defaulting to file names where not supported) +Customizable prompts (including ANSI support) +Local & environment variables +Argument quoting +Multiple commands on one line with semicolons +Many built-in functions (including in-line Lua commands) +Arithmetic expansion +If, while, for statements +Function support +Shell scripting/shebangs +Background jobs +rc files +Restorable history +Partial CCKernel2 support +Full compatibility with CraftOS shell.lua]], + license = 'MIT', + install = [[ + require('opus.alternate').set('shell', 'packages/cash/cash.lua') + ]], + uninstall = [[ + require('opus.alternate').remove('shell', 'packages/cash/cash.lua') + ]], +} diff --git a/cash/etc/apps.db b/cash/etc/apps.db new file mode 100644 index 0000000..2b13ce3 --- /dev/null +++ b/cash/etc/apps.db @@ -0,0 +1,7 @@ +{ + [ "a3c2cb0e2228250d98c481128f6837ef93111d73" ] = { + title = "MBS", + category = "Apps", + run = ".mbs/bin/shell.lua", + }, +} diff --git a/cash/etc/fstab b/cash/etc/fstab new file mode 100644 index 0000000..37fb07c --- /dev/null +++ b/cash/etc/fstab @@ -0,0 +1 @@ +packages/cash/cash.lua urlfs https://raw.githubusercontent.com/MCJack123/cash/master/cash.lua \ No newline at end of file diff --git a/common/etc/fstab b/common/etc/fstab index eedfbf8..e636640 100644 --- a/common/etc/fstab +++ b/common/etc/fstab @@ -1,4 +1,6 @@ packages/common/ascii.lua urlfs http://pastebin.com/raw/u3kcnyjd packages/common/hexedit.lua urlfs https://pastebin.com/raw/Ds9ajsp4 packages/common/colors.lua urlfs https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/ignore/colors.lua -packages/common/cowsay.lua urlfs https://pastebin.com/raw/n00VQJsw \ No newline at end of file +packages/common/cowsay.lua urlfs https://pastebin.com/raw/n00VQJsw +packages/common/calc.lua urlfs https://pastebin.com/raw/nAinUn1h +packages/common/write.lua urlfs https://pastebin.com/raw/RSyhCjqv \ No newline at end of file