mirror of https://github.com/Hilbis/Hilbish
fix: update to work with latest ansikit
parent
807ec15faa
commit
271ea946eb
4
lua.go
4
lua.go
|
@ -12,7 +12,7 @@ import (
|
||||||
|
|
||||||
var minimalconf = `
|
var minimalconf = `
|
||||||
ansikit = require 'ansikit'
|
ansikit = require 'ansikit'
|
||||||
prompt(ansikit.text(
|
prompt(ansikit.format(
|
||||||
'{blue}%u {cyan}%d {green}∆{reset} '
|
'{blue}%u {cyan}%d {green}∆{reset} '
|
||||||
))
|
))
|
||||||
`
|
`
|
||||||
|
@ -64,7 +64,7 @@ func LuaInit() {
|
||||||
err = l.DoFile(homedir + "/.hilbishrc.lua")
|
err = l.DoFile(homedir + "/.hilbishrc.lua")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintln(os.Stderr, err,
|
fmt.Fprintln(os.Stderr, err,
|
||||||
"An error has occured while loading your config! Falling back to minimal default config.\n")
|
"\nAn error has occured while loading your config! Falling back to minimal default config.\n")
|
||||||
|
|
||||||
l.DoString(minimalconf)
|
l.DoString(minimalconf)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue