mirror of https://github.com/Hilbis/Hilbish
Compare commits
2 Commits
deb1bc8a5e
...
e4218a135a
Author | SHA1 | Date |
---|---|---|
devins2518 | e4218a135a | |
devins2518 | eeafd1e5cf |
2
Makefile
2
Makefile
|
@ -9,12 +9,14 @@ install:
|
||||||
@install -v -d "$(BINDIR)/" && install -m 0755 -v hilbish "$(BINDIR)/hilbish"
|
@install -v -d "$(BINDIR)/" && install -m 0755 -v hilbish "$(BINDIR)/hilbish"
|
||||||
@mkdir -p "$(LIBDIR)"
|
@mkdir -p "$(LIBDIR)"
|
||||||
@cp libs preload.lua .hilbishrc.lua "$(LIBDIR)" -r
|
@cp libs preload.lua .hilbishrc.lua "$(LIBDIR)" -r
|
||||||
|
@echo /usr/bin/hilbish >> /etc/shells
|
||||||
@echo "Hilbish Installed"
|
@echo "Hilbish Installed"
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@rm -vrf \
|
@rm -vrf \
|
||||||
"$(BINDIR)/hilbish" \
|
"$(BINDIR)/hilbish" \
|
||||||
"$(LIBDIR)"
|
"$(LIBDIR)"
|
||||||
|
@sed '/\/usr\/bin\/hilbish/d' /etc/shells
|
||||||
@echo "Hilbish Uninstalled"
|
@echo "Hilbish Uninstalled"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
14
main.go
14
main.go
|
@ -59,12 +59,14 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
homedir, _ := os.UserHomeDir()
|
homedir, _ := os.UserHomeDir()
|
||||||
err = os.WriteFile(homedir + "/.hilbishrc.lua", input, 0644)
|
if _, err := os.Stat(homedir + "/.hilbishrc.lua"); os.IsNotExist(err) {
|
||||||
if err != nil {
|
err = os.WriteFile(homedir + "/.hilbishrc.lua", input, 0644)
|
||||||
fmt.Println("Error creating config file")
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println("Error creating config file")
|
||||||
return
|
fmt.Println(err)
|
||||||
}
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
HandleSignals()
|
HandleSignals()
|
||||||
LuaInit()
|
LuaInit()
|
||||||
|
|
Loading…
Reference in New Issue