From: A-Larsen Date: Thu, 15 Oct 2026 22:04:54 +0000 (-0400) Subject: first commit X-Git-Url: https://nyquistdev.net/git/?a=commitdiff_plain;h=310072bfcb569ec5c309cd010b52dfeadb7709da;p=tst.git first commit --- 310072bfcb569ec5c309cd010b52dfeadb7709da diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..42df336 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +SHARE = /usr/local/share +BIN = /usr/local/bin +LANGUAGES = bash c cpp js lua nasm pl py s sed sh +BINFILES = tst runtst rungdb + +install: + for file in $(LANGUAGES); do mkdir -p $(SHARE)/tst/$$file; done + mkdir -p $(BIN) + cp -r ./share/tst $(SHARE) + cp -r ./bin/* $(BIN) + for file in $(BINFILES); do chmod 755 $(BIN)/$$file; done + chown -R $(USER) $(SHARE)/tst + cp ./man/tst.1 /usr/share/man/man1/ + +uninstall: + rm -rf $(SHARE)/tst /usr/share/man/man1/tst.1 + for file in $(BINFILES); do rm -rf $(BIN)/$$file; done + diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..fd74249 --- /dev/null +++ b/README.adoc @@ -0,0 +1,84 @@ +image::tst-icon.png[] + +This is a collection of bash, vim, and gdb scripts that help you easily write, +compile, and debug lines of code without having to create new files and +directories. For compiled code, it adds debuging symbols. Everything is +integrated with neovim. This is **NOT** for testing code in compiled languages +that have multiple non-standard libraries. This is just for testing simple short +lines of code. + +== Installation + +To install for the current user do + +---- +sudo make install USER=$USER +---- + +Otherwise you can change `$USER` to whatever user you want to use the scripts as + +== Uninstall + +---- +sudo make uninstall +---- + +== Running + +This command will open up neovim into the default template for you language + +[source ,sh] +---- +$ tst