2022-05-01 01:22:37 +00:00
|
|
|
hilbish.opts = {}
|
|
|
|
|
|
|
|
local function setupOpt(name, default)
|
2024-04-11 22:16:45 +00:00
|
|
|
hilbish.opts[name] = default
|
2023-07-10 04:06:29 +00:00
|
|
|
pcall(require, 'nature.opts.' .. name)
|
2022-05-01 01:22:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
local defaultOpts = {
|
2022-07-09 21:15:13 +00:00
|
|
|
autocd = false,
|
2022-07-13 20:02:09 +00:00
|
|
|
history = true,
|
2022-07-09 21:15:13 +00:00
|
|
|
greeting = string.format([[Welcome to {magenta}Hilbish{reset}, {cyan}%s{reset}.
|
|
|
|
The nice lil shell for {blue}Lua{reset} fanatics!
|
2022-07-09 21:54:21 +00:00
|
|
|
]], hilbish.user),
|
2023-07-10 04:06:29 +00:00
|
|
|
motd = true,
|
2023-07-10 23:03:30 +00:00
|
|
|
fuzzy = false,
|
2023-12-26 04:18:30 +00:00
|
|
|
notifyJobFinish = true,
|
2024-07-21 23:02:46 +00:00
|
|
|
crimmas = true,
|
|
|
|
tips = true
|
2022-05-01 01:22:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
for optsName, default in pairs(defaultOpts) do
|
|
|
|
setupOpt(optsName, default)
|
|
|
|
end
|