Hilbish/.hilbishrc.lua

18 lines
410 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'
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
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 ())