From cf317a9c64425a0341f9437d83233071ed5490a0 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sun, 21 Mar 2021 02:26:56 -0400 Subject: [PATCH] fix: include other path (/usr/share/hilbish/) for packages --- .hilbishrc.lua | 7 +++++-- go.mod | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.hilbishrc.lua b/.hilbishrc.lua index 2529be3..2dbd8b6 100644 --- a/.hilbishrc.lua +++ b/.hilbishrc.lua @@ -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) - fs.cd(path[1]) + print(path) + if path then + fs.cd(path[1]) + end end) --[[commander = { __commands = {} diff --git a/go.mod b/go.mod index 45acaea..ffbbf25 100644 --- a/go.mod +++ b/go.mod @@ -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 )