Hilbish/.hilbishrc.lua

19 lines
356 B
Lua
Raw Normal View History

2021-03-20 00:28:22 +00:00
-- Default Hilbish config
local lunacolors = require 'lunacolors'
local bait = require 'bait'
2021-03-20 22:51:51 +00:00
function doPrompt(fail)
hilbish.prompt(lunacolors.format(
2021-05-01 20:18:11 +00:00
'{blue}%u {cyan}%d ' .. (fail and '{red}' or '{green}') .. ''
))
end
2021-12-31 17:25:53 +00:00
print(lunacolors.format(hilbish.greeting))
2021-04-03 17:14:14 +00:00
doPrompt()
bait.catch('command.exit', function(code)
doPrompt(code ~= 0)
end)
2021-03-20 22:51:51 +00:00