2021-03-20 00:28:22 +00:00
|
|
|
-- Default Hilbish config
|
2021-03-21 06:26:56 +00:00
|
|
|
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)
|
2021-03-21 06:26:56 +00:00
|
|
|
print(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
|
|
|
|
2021-03-20 01:08:19 +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 ())
|