2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-07-15 15:22:03 +00:00
Hilbish/.hilbishrc.lua
2021-12-31 13:25:53 -04:00

19 lines
336 B
Lua

-- Default Hilbish config
lunacolors = require 'lunacolors'
bait = require 'bait'
function doPrompt(fail)
prompt(lunacolors.format(
'{blue}%u {cyan}%d ' .. (fail and '{red}' or '{green}') .. ''
))
end
print(lunacolors.format(hilbish.greeting))
doPrompt()
bait.catch('command.exit', function(code)
doPrompt(code ~= 0)
end)