openOS command line programs
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
local Config = require('config')
|
||||
|
||||
local kernel = _G.kernel
|
||||
local os = _G.os
|
||||
local settings = _G.settings
|
||||
|
||||
@@ -9,3 +12,13 @@ end
|
||||
function os.getenv(k)
|
||||
return settings.get(k)
|
||||
end
|
||||
|
||||
local config = Config.load('shell', { aliases = { } })
|
||||
if not config.openOsInit then
|
||||
config.openOsInit = true
|
||||
for _, alias in pairs({ 'ls', 'rm', 'cp', 'mv' }) do
|
||||
config.aliases[alias] = nil
|
||||
kernel.getShell().clearAlias(alias)
|
||||
end
|
||||
Config.update('shell', config)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user