mirror of https://github.com/Hilbis/Hilbish
19 lines
356 B
Lua
19 lines
356 B
Lua
-- Default Hilbish config
|
|
local lunacolors = require 'lunacolors'
|
|
local bait = require 'bait'
|
|
|
|
function doPrompt(fail)
|
|
hilbish.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)
|
|
|