mirror of https://github.com/Hilbis/Hilbish
Compare commits
3 Commits
22d8a61544
...
afe579f5be
Author | SHA1 | Date |
---|---|---|
TorchedSammy | afe579f5be | |
TorchedSammy | 5d3c129e80 | |
TorchedSammy | 2bc75c8130 |
1
exec.go
1
exec.go
|
@ -173,6 +173,7 @@ func lookpath(file string) error {
|
|||
|
||||
return os.ErrNotExist
|
||||
}
|
||||
|
||||
func findExecutable(name string) error {
|
||||
f, err := os.Stat(name)
|
||||
if err != nil {
|
||||
|
|
|
@ -3,7 +3,7 @@ local bait = require 'bait'
|
|||
local commander = require 'commander'
|
||||
local fs = require 'fs'
|
||||
local lunacolors = require 'lunacolors'
|
||||
local _ require 'succulent' -- Function additions
|
||||
local _ = require 'succulent' -- Function additions
|
||||
local oldDir = hilbish.cwd()
|
||||
|
||||
local shlvl = tonumber(os.getenv 'SHLVL')
|
||||
|
|
|
@ -6,7 +6,10 @@ package main
|
|||
// making them interchangable during build time
|
||||
// this is hilbiline's, as is obvious by the filename
|
||||
|
||||
import "github.com/Rosettea/Hilbiline"
|
||||
import (
|
||||
"github.com/Rosettea/Hilbiline"
|
||||
"github.com/yuin/gopher-lua"
|
||||
)
|
||||
|
||||
type lineReader struct {
|
||||
hl *hilbiline.HilbilineState
|
||||
|
@ -42,7 +45,7 @@ func (lr *lineReader) Resize() {
|
|||
}
|
||||
|
||||
// lua module
|
||||
func (lr *lineReader) Loader() *lua.LTable {
|
||||
func (lr *lineReader) Loader(L *lua.LState) *lua.LTable {
|
||||
lrLua := map[string]lua.LGFunction{
|
||||
"add": lr.luaAddHistory,
|
||||
"all": lr.luaAllHistory,
|
||||
|
|
|
@ -12,6 +12,7 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/maxlandon/readline"
|
||||
"github.com/yuin/gopher-lua"
|
||||
)
|
||||
|
||||
type lineReader struct {
|
||||
|
@ -64,7 +65,7 @@ func (lr *lineReader) Resize() {
|
|||
}
|
||||
|
||||
// lua module
|
||||
func (lr *lineReader) Loader() *lua.LTable {
|
||||
func (lr *lineReader) Loader(L *lua.LState) *lua.LTable {
|
||||
lrLua := map[string]lua.LGFunction{
|
||||
"add": lr.luaAddHistory,
|
||||
"all": lr.luaAllHistory,
|
||||
|
|
Loading…
Reference in New Issue