Hilbish/.hilbishrc.lua

21 lines
441 B
Lua
Raw Normal View History

2021-03-20 00:28:22 +00:00
-- Default Hilbish config
ansikit = require 'ansikit'
bait = require 'bait'
2021-03-20 22:51:51 +00:00
function doPrompt(fail)
prompt(ansikit.format(
'{blue}%u {cyan}%d ' .. (fail and '{red}' or '{green}') .. '∆{reset} '
))
end
2021-04-07 13:18:06 +00:00
print(ansikit.format('Welcome to {magenta}Hilbish{reset}, {cyan}' ..
_user .. '{reset}.\n' ..
2021-04-07 13:10:11 +00:00
'The nice lil shell for {blue}Lua{reset} fanatics!\n'))
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