2
2
kopia lustrzana https://github.com/Hilbis/Hilbish synced 2025-07-10 21:12:02 +00:00

Porównaj commity

...

2 Commity

Autor SHA1 Wiadomość Data
devins2518
e4218a135a
fix: only create rc file if it doesn't exist (#10) 2021-03-25 12:07:51 -04:00
devins2518
eeafd1e5cf
fix: add hilbish to /etc/shells (#9) 2021-03-25 12:04:42 -04:00
2 zmienionych plików z 10 dodań i 6 usunięć

Wyświetl plik

@ -9,12 +9,14 @@ install:
@install -v -d "$(BINDIR)/" && install -m 0755 -v hilbish "$(BINDIR)/hilbish"
@mkdir -p "$(LIBDIR)"
@cp libs preload.lua .hilbishrc.lua "$(LIBDIR)" -r
@echo /usr/bin/hilbish >> /etc/shells
@echo "Hilbish Installed"
uninstall:
@rm -vrf \
"$(BINDIR)/hilbish" \
"$(LIBDIR)"
@sed '/\/usr\/bin\/hilbish/d' /etc/shells
@echo "Hilbish Uninstalled"
clean:

Wyświetl plik

@ -59,12 +59,14 @@ func main() {
}
homedir, _ := os.UserHomeDir()
if _, err := os.Stat(homedir + "/.hilbishrc.lua"); os.IsNotExist(err) {
err = os.WriteFile(homedir + "/.hilbishrc.lua", input, 0644)
if err != nil {
fmt.Println("Error creating config file")
fmt.Println(err)
return
}
}
HandleSignals()
LuaInit()