mirror of https://github.com/Hilbis/Hilbish
fix: include other path (/usr/share/hilbish/) for packages
parent
1edc81f32b
commit
cf317a9c64
|
@ -1,11 +1,14 @@
|
||||||
-- Default Hilbish config
|
-- 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'
|
fs = require 'fs'
|
||||||
commander = require 'commander'
|
commander = require 'commander'
|
||||||
|
|
||||||
commander.register("cd", function (path)
|
commander.register("cd", function (path)
|
||||||
|
print(path)
|
||||||
|
if path then
|
||||||
fs.cd(path[1])
|
fs.cd(path[1])
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
--[[commander = {
|
--[[commander = {
|
||||||
__commands = {}
|
__commands = {}
|
||||||
|
|
4
go.mod
4
go.mod
|
@ -6,10 +6,10 @@ require (
|
||||||
github.com/Nerdmaster/terminal v0.12.1 // indirect
|
github.com/Nerdmaster/terminal v0.12.1 // indirect
|
||||||
github.com/akamensky/argparse v1.2.2
|
github.com/akamensky/argparse v1.2.2
|
||||||
github.com/bobappleyard/readline v0.0.0-20150707195538-7e300e02d38e
|
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/eiannone/keyboard v0.0.0-20200508000154-caf4b762e807 // indirect
|
||||||
github.com/gdamore/tcell v1.4.0 // indirect
|
github.com/gdamore/tcell v1.4.0 // indirect
|
||||||
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da
|
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da
|
||||||
golang.org/x/sys v0.0.0-20210319071255-635bc2c9138d // indirect
|
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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue