mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-22 05:23:23 +00:00
Compare commits
3 Commits
22d8a61544
...
afe579f5be
Author | SHA1 | Date | |
---|---|---|---|
|
afe579f5be | ||
|
5d3c129e80 | ||
|
2bc75c8130 |
1
exec.go
1
exec.go
@ -173,6 +173,7 @@ 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,7 +6,10 @@ 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 "github.com/Rosettea/Hilbiline"
|
import (
|
||||||
|
"github.com/Rosettea/Hilbiline"
|
||||||
|
"github.com/yuin/gopher-lua"
|
||||||
|
)
|
||||||
|
|
||||||
type lineReader struct {
|
type lineReader struct {
|
||||||
hl *hilbiline.HilbilineState
|
hl *hilbiline.HilbilineState
|
||||||
@ -42,7 +45,7 @@ func (lr *lineReader) Resize() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// lua module
|
// lua module
|
||||||
func (lr *lineReader) Loader() *lua.LTable {
|
func (lr *lineReader) Loader(L *lua.LState) *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,6 +12,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/maxlandon/readline"
|
"github.com/maxlandon/readline"
|
||||||
|
"github.com/yuin/gopher-lua"
|
||||||
)
|
)
|
||||||
|
|
||||||
type lineReader struct {
|
type lineReader struct {
|
||||||
@ -64,7 +65,7 @@ func (lr *lineReader) Resize() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// lua module
|
// lua module
|
||||||
func (lr *lineReader) Loader() *lua.LTable {
|
func (lr *lineReader) Loader(L *lua.LState) *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…
x
Reference in New Issue
Block a user