Hilbish/.hilbishrc.lua

22 lines
499 B
Lua
Raw Normal View History

2021-03-20 00:28:22 +00:00
-- Default Hilbish config
2021-03-20 22:51:51 +00:00
package.path = package.path .. ';./libs/?/init.lua' .. ';/home/sammy/.luarocks/lib/lua/5.4/?.so'
fs = require 'fs'
commander = require 'commander'
commander.register("cd", function (path)
fs.cd(path[1])
end)
--[[commander = {
__commands = {}
}
commander.__commands.ayo = function ()
print("ayo?")
end]]--
2021-03-20 00:28:22 +00:00
local ansikit = require 'ansikit'
prompt(ansikit.text('λ {bold}{cyan}'..os.getenv('USER')..' >{magenta}>{cyan}>{reset} '))
2021-03-20 22:51:51 +00:00
--hook("tab complete", function ())