mirror of
https://github.com/Hilbis/Hilbish
synced 2025-05-10 22:33:22 +00:00
12 lines
253 B
Lua
12 lines
253 B
Lua
-- The preload file initializes everything else for our shell
|
|
-- Currently it just adds our builtins
|
|
|
|
local fs = require 'fs'
|
|
local commander = require 'commander'
|
|
|
|
commander.register('cd', function (path)
|
|
if #path == 1 then
|
|
fs.cd(path[1])
|
|
end
|
|
end)
|