mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-02 03:33:22 +00:00
"feat: cd builtin at lua config"
This commit is contained in:
parent
55943e3c16
commit
93ce2a9cef
@ -1,6 +1,21 @@
|
||||
-- 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'
|
||||
|
||||
prompt(ansikit.text('λ {bold}{cyan}'..os.getenv('USER')..' >{magenta}>{cyan}>{reset} '))
|
||||
|
||||
--hook("tab complete", function ())
|
||||
|
Loading…
x
Reference in New Issue
Block a user