mirror of
https://github.com/kepler155c/opus
synced 2025-10-21 18:57:41 +00:00
better startup
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user