autorun overhaul + shell input readline commands + launcher option + shell colors

This commit is contained in:
kepler155c@gmail.com
2019-03-28 07:29:01 -04:00
parent 8fede6f507
commit b71ca0d545
13 changed files with 480 additions and 155 deletions

View File

@@ -75,7 +75,7 @@ end)
local modifiers = Util.transpose {
keys.leftCtrl, keys.rightCtrl,
keys.leftShift, keys.rightShift,
--keys.leftAlt, keys.rightAlt,
keys.leftAlt, keys.rightAlt,
}
kernel.hook({ 'key', 'key_up', 'char', 'paste' }, function(event, eventData)

View File

@@ -44,6 +44,6 @@ end
shell.setPath(table.concat(path, ':'))
_G.LUA_PATH = config.lua_path
_G.settings.set('require.path', config.lua_path)
_G.settings.set('mbs.shell.require_path', config.lua_path)
fs.loadTab('usr/config/fstab')

View File

@@ -332,11 +332,15 @@ kernel.hook('mouse_scroll', function(_, eventData)
end)
kernel.hook('kernel_ready', function()
local env = Util.shallowCopy(shell.getEnv())
_G.requireInjector(env)
overviewId = multishell.openTab({
path = 'sys/apps/Overview.lua',
path = config.launcher or 'sys/apps/Overview.lua',
isOverview = true,
focused = true,
title = '+',
env = env,
})
multishell.openTab({