2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-07-01 16:52:03 +00:00
Hilbish/nature/opts/init.lua
sammyette 1bb433dc64
feat: add processors api (#343)
* feat: add processors api

* fix: make processor work properly, implement in exec code

* feat: add names to processors, allow skipping based on name

* feat: add opt to skip processors

* feat: allow processors to set if history should be saved
2025-06-10 18:23:24 -04:00

25 lines
548 B
Lua

hilbish.opts = {}
local function setupOpt(name, default)
hilbish.opts[name] = default
local ok, err = pcall(require, 'nature.opts.' .. name)
end
local defaultOpts = {
autocd = false,
history = true,
greeting = string.format([[Welcome to {magenta}Hilbish{reset}, {cyan}%s{reset}.
The nice lil shell for {blue}Lua{reset} fanatics!
]], hilbish.user),
motd = true,
fuzzy = false,
notifyJobFinish = true,
crimmas = true,
tips = true,
processorSkipList = {}
}
for optsName, default in pairs(defaultOpts) do
setupOpt(optsName, default)
end