"feat: cd builtin at lua config"

pull/5/head
TorchedSammy 2021-03-20 18:51:51 -04:00
parent 55943e3c16
commit 93ce2a9cef
1 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,21 @@
-- Default Hilbish config -- Default Hilbish config
package.path = package.path .. ';./libs/?/init.lua' 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]]--
local ansikit = require 'ansikit' local ansikit = require 'ansikit'
prompt(ansikit.text('λ {bold}{cyan}'..os.getenv('USER')..' >{magenta}>{cyan}>{reset} ')) prompt(ansikit.text('λ {bold}{cyan}'..os.getenv('USER')..' >{magenta}>{cyan}>{reset} '))
--hook("tab complete", function ())