mirror of
https://github.com/Hilbis/Hilbish
synced 2025-05-14 00:03:22 +00:00
Compare commits
1 Commits
ff097ba3a9
...
6508fcfba2
Author | SHA1 | Date | |
---|---|---|---|
6508fcfba2 |
@ -1,10 +1,5 @@
|
|||||||
# 🎀 Changelog
|
# 🎀 Changelog
|
||||||
|
|
||||||
## Unreleased
|
|
||||||
### Added
|
|
||||||
- `nature.opts.tips` was added to randomly generate tips on start up.
|
|
||||||
Follows the pattern of motd and greeting. Displays after greeting on start up.
|
|
||||||
|
|
||||||
## [2.3.0] - 2024-07-20
|
## [2.3.0] - 2024-07-20
|
||||||
### Added
|
### Added
|
||||||
- `commander.registry` function to get all registered commanders.
|
- `commander.registry` function to get all registered commanders.
|
||||||
|
@ -14,8 +14,7 @@ The nice lil shell for {blue}Lua{reset} fanatics!
|
|||||||
motd = true,
|
motd = true,
|
||||||
fuzzy = false,
|
fuzzy = false,
|
||||||
notifyJobFinish = true,
|
notifyJobFinish = true,
|
||||||
crimmas = true,
|
crimmas = true
|
||||||
tips = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for optsName, default in pairs(defaultOpts) do
|
for optsName, default in pairs(defaultOpts) do
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
local bait = require 'bait'
|
|
||||||
local lunacolors = require 'lunacolors'
|
|
||||||
|
|
||||||
PREAMBLE = [[
|
|
||||||
Getting Started: https://rosettea.github.io/Hilbish/docs/getting-started/
|
|
||||||
{yellow}🛈 These tips can be disabled with hilbish.opts.tips = false{reset}
|
|
||||||
]]
|
|
||||||
|
|
||||||
hilbish.tips = {
|
|
||||||
"Join the discord and say hi! -> https://discord.gg/3PDdcQz",
|
|
||||||
"{green}hilbish.alias{reset} -> Sets an alias to another cmd",
|
|
||||||
"{green}hilbish.appendPath{reset} -> Appends the provided dir to the command path ($PATH)",
|
|
||||||
"{green}hilbish.completions{reset} -> Are use to control suggestions when tab completing.",
|
|
||||||
"{green}hilbish.message{reset} -> Simple notification system which can be used by other plugins and parts of the shell to notify the user of various actions.",
|
|
||||||
[[
|
|
||||||
{green}hilbish.opts{reset} -> Simple toggle or value options a user can set.
|
|
||||||
- EX: hilbish.opts.greeting = false, will cause the greeting message on start-up to not display.
|
|
||||||
]],
|
|
||||||
[[
|
|
||||||
{green}hilbish.runner{reset} -> The runner interface contains functions that allow the user to change how Hilbish interprets interactive input.
|
|
||||||
- The default runners can run shell script and Lua code.
|
|
||||||
]],
|
|
||||||
[[
|
|
||||||
Add Lua-written commands with the commander module!
|
|
||||||
Checkout the docs here -> https://rosettea.github.io/Hilbish/docs/api/commander/
|
|
||||||
]]
|
|
||||||
}
|
|
||||||
|
|
||||||
bait.catch('hilbish.init', function()
|
|
||||||
if hilbish.interactive and hilbish.opts.tip then
|
|
||||||
local idx = math.random(1, #hilbish.tips)
|
|
||||||
print(lunacolors.format(PREAMBLE .. "\nTip: " .. hilbish.tips[idx]))
|
|
||||||
end
|
|
||||||
end)
|
|
Loading…
x
Reference in New Issue
Block a user