Hilbish/.hilbishrc.lua

20 lines
447 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('Welcome to {magenta}Hilbish{reset}, {cyan}' .. _user ..
'{reset}.\n' .. 'The nice lil shell for {blue}Lua{reset} fanatics!\n'))
doPrompt()
bait.catch('command.exit', function(code)
doPrompt(code ~= 0)
end)