fix: include other path (/usr/share/hilbish/) for packages

pull/5/head
TorchedSammy 2021-03-21 02:26:56 -04:00
parent 1edc81f32b
commit cf317a9c64
2 changed files with 7 additions and 4 deletions

View File

@ -1,11 +1,14 @@
-- Default Hilbish config
package.path = package.path .. ';./libs/?/init.lua' .. ';/home/sammy/.luarocks/lib/lua/5.4/?.so'
package.path = package.path .. ';./libs/?/init.lua;/usr/share/hilbish/libs/?/init.lua'
fs = require 'fs'
commander = require 'commander'
commander.register("cd", function (path)
print(path)
if path then
fs.cd(path[1])
end
end)
--[[commander = {
__commands = {}

4
go.mod
View File

@ -6,10 +6,10 @@ require (
github.com/Nerdmaster/terminal v0.12.1 // indirect
github.com/akamensky/argparse v1.2.2
github.com/bobappleyard/readline v0.0.0-20150707195538-7e300e02d38e
github.com/chuckpreslar/emission v0.0.0-20170206194824-a7ddd980baf9 // indirect
github.com/chuckpreslar/emission v0.0.0-20170206194824-a7ddd980baf9
github.com/eiannone/keyboard v0.0.0-20200508000154-caf4b762e807 // indirect
github.com/gdamore/tcell v1.4.0 // indirect
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da
golang.org/x/sys v0.0.0-20210319071255-635bc2c9138d // indirect
layeh.com/gopher-luar v1.0.8 // indirect
layeh.com/gopher-luar v1.0.8
)