Hilbish/.hilbishrc.lua

17 lines
403 B
Lua
Raw Normal View History

2021-03-20 00:28:22 +00:00
-- Default Hilbish config
package.path = package.path .. ';./libs/?/init.lua;/usr/share/hilbish/libs/?/init.lua'
2021-03-20 22:51:51 +00:00
fs = require 'fs'
commander = require 'commander'
ansikit = require 'ansikit'
2021-03-20 22:51:51 +00:00
commander.register("cd", function (path)
if path then
fs.cd(path[1])
end
2021-03-20 22:51:51 +00:00
end)
2021-03-20 00:28:22 +00:00
prompt(ansikit.text('λ {bold}{cyan}'..os.getenv('USER')..' >{magenta}>{cyan}>{reset} '))
2021-03-20 22:51:51 +00:00
--hook("tab complete", function ())