mirror of https://github.com/Hilbis/Hilbish
feat: add compile vars for windows
parent
a3cc8160d3
commit
5d78a0c574
11
vars.go
11
vars.go
|
@ -3,18 +3,7 @@ package main
|
||||||
// String vars that are free to be changed at compile time
|
// String vars that are free to be changed at compile time
|
||||||
var (
|
var (
|
||||||
version = "v0.5.1"
|
version = "v0.5.1"
|
||||||
requirePaths = `';./libs/?/init.lua;./?/init.lua;./?/?.lua'
|
|
||||||
.. ';/usr/share/hilbish/libs/?/init.lua;'
|
|
||||||
.. ';/usr/share/hilbish/libs/?/?.lua;'
|
|
||||||
.. hilbish.home .. '/.local/share/hilbish/libs/?/init.lua;'
|
|
||||||
.. hilbish.home .. '/.local/share/hilbish/libs/?/?.lua;'
|
|
||||||
.. hilbish.home .. '/.local/share/hilbish/libs/?.lua'
|
|
||||||
.. hilbish.home .. '/.config/hilbish/?/init.lua'
|
|
||||||
.. hilbish.home .. '/.config/hilbish/?/?.lua'
|
|
||||||
.. hilbish.home .. '/.config/hilbish/?.lua'`
|
|
||||||
preloadPath = "/usr/share/hilbish/preload.lua"
|
|
||||||
defaultConfDir = "" // ~ will be substituted for home, path for user's default config
|
defaultConfDir = "" // ~ will be substituted for home, path for user's default config
|
||||||
sampleConfPath = "/usr/share/hilbish/.hilbishrc.lua" // Path to default/sample config
|
|
||||||
|
|
||||||
prompt string // Prompt will always get changed anyway
|
prompt string // Prompt will always get changed anyway
|
||||||
multilinePrompt = "> "
|
multilinePrompt = "> "
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
// +build unix
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
// String vars that are free to be changed at compile time
|
||||||
|
var (
|
||||||
|
requirePaths = `';./libs/?/init.lua;./?/init.lua;./?/?.lua'
|
||||||
|
.. ';/usr/share/hilbish/libs/?/init.lua;'
|
||||||
|
.. ';/usr/share/hilbish/libs/?/?.lua;'
|
||||||
|
.. hilbish.home .. '/.local/share/hilbish/libs/?/init.lua;'
|
||||||
|
.. hilbish.home .. '/.local/share/hilbish/libs/?/?.lua;'
|
||||||
|
.. hilbish.home .. '/.local/share/hilbish/libs/?.lua'
|
||||||
|
.. hilbish.home .. '/.config/hilbish/?/init.lua'
|
||||||
|
.. hilbish.home .. '/.config/hilbish/?/?.lua'
|
||||||
|
.. hilbish.home .. '/.config/hilbish/?.lua'`
|
||||||
|
preloadPath = "/usr/share/hilbish/preload.lua"
|
||||||
|
sampleConfPath = "/usr/share/hilbish/.hilbishrc.lua" // Path to default/sample config
|
||||||
|
)
|
|
@ -0,0 +1,12 @@
|
||||||
|
// +build windows
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
// String vars that are free to be changed at compile time
|
||||||
|
var (
|
||||||
|
requirePaths = `';./libs/?/init.lua;./?/init.lua;./?/?.lua'
|
||||||
|
.. hilbish.home .. '\\Appdata\\Roaming\\Hilbish\\libs\\?\\init.lua;'
|
||||||
|
.. hilbish.home .. '\\Appdata\\Roaming\\Hilbish\\libs\\?\\?.lua;'`
|
||||||
|
preloadPath = "~\\Appdata\\Roaming\\Hilbish\\preload.lua" // ~ and \ gonna cry?
|
||||||
|
sampleConfPath = "~\\Appdata\\Roaming\\Hilbish\\hilbishrc.lua" // Path to default/sample config
|
||||||
|
)
|
Loading…
Reference in New Issue