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