2021-06-08 23:16:37 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
// String vars that are free to be changed at compile time
|
|
|
|
var (
|
2021-06-15 23:33:51 +00:00
|
|
|
version = "v0.5.1"
|
2021-06-08 23:16:37 +00:00
|
|
|
requirePaths = `';./libs/?/init.lua;./?/init.lua;./?/?.lua'
|
|
|
|
.. ';/usr/share/hilbish/libs/?/init.lua;'
|
|
|
|
.. ';/usr/share/hilbish/libs/?/?.lua;'
|
2021-06-15 23:16:22 +00:00
|
|
|
.. hilbish.home .. '/.local/share/hilbish/libs/?/init.lua;'
|
|
|
|
.. hilbish.home .. '/.local/share/hilbish/libs/?/?.lua;'
|
2021-06-15 23:17:56 +00:00
|
|
|
.. hilbish.home .. '/.local/share/hilbish/libs/?.lua'
|
|
|
|
.. hilbish.home .. '/.config/hilbish/?/init.lua'
|
|
|
|
.. hilbish.home .. '/.config/hilbish/?/?.lua'
|
|
|
|
.. hilbish.home .. '/.config/hilbish/?.lua'`
|
2021-06-09 01:00:31 +00:00
|
|
|
preloadPath = "/usr/share/hilbish/preload.lua"
|
2021-06-10 00:33:30 +00:00
|
|
|
defaultConfDir = "" // ~ will be substituted for home, path for user's default config
|
|
|
|
sampleConfPath = "/usr/share/hilbish/.hilbishrc.lua" // Path to default/sample config
|
2021-06-08 23:16:37 +00:00
|
|
|
|
|
|
|
prompt string // Prompt will always get changed anyway
|
|
|
|
multilinePrompt = "> "
|
|
|
|
)
|
|
|
|
|
|
|
|
// Flags
|
|
|
|
var (
|
|
|
|
running bool // Is a command currently running
|
|
|
|
interactive bool
|
|
|
|
login bool // Are we the login shell?
|
|
|
|
noexecute bool // Should we run Lua or only report syntax errors
|
|
|
|
)
|
|
|
|
|