1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-21 18:57:41 +00:00

better startup

This commit is contained in:
kepler155c@gmail.com
2017-09-26 05:34:31 -04:00
parent 2d93974e6a
commit f2e1a39584
3 changed files with 28 additions and 29 deletions

View File

@@ -52,23 +52,10 @@ local config = {
tabBarBackgroundColor = colors.gray,
focusBackgroundColor = colors.gray,
},
-- path = '.:/apps:' .. shell.path():sub(3),
path = shell.path(),
}
Config.load('multishell', config)
shell.setPath(config.path)
if config.aliases then
for k in pairs(shell.aliases()) do
shell.clearAlias(k)
end
for k,v in pairs(config.aliases) do
shell.setAlias(k, v)
end
end
local _colors = config.standard
if parentTerm.isColor() then
_colors = config.color

View File

@@ -236,7 +236,7 @@ if #tArgs > 0 then
-- "shell x y z"
-- Run the program specified in this new shell
local s, m = shell.run( ... )
if not s and m ~= 'Terminated' then
if not s and m and m ~= 'Terminated' then
error(m or '')
end
return s, m