From 310072bfcb569ec5c309cd010b52dfeadb7709da Mon Sep 17 00:00:00 2001 From: A-Larsen Date: Thu, 15 Oct 2026 18:04:54 -0400 Subject: [PATCH] first commit --- Makefile | 18 + README.adoc | 84 +++ bin/rungdb | 15 + bin/runtst | 40 ++ bin/tst | 52 ++ docinfo.conf | 3 + man/tst.1 | 45 ++ rendered.html | 1087 ++++++++++++++++++++++++++++++ share/tst/gdb/c.gdb | 0 share/tst/gdb/cpp.gdb | 0 share/tst/gdb/global.gdb | 1 + share/tst/gdb/nasm.gdb | 6 + share/tst/mappings.vim | 14 + share/tst/templates/bash/default | 2 + share/tst/templates/c/default | 7 + share/tst/templates/cpp/default | 7 + share/tst/templates/js/default | 3 + share/tst/templates/lua/default | 3 + share/tst/templates/nasm/default | 23 + share/tst/templates/pl/default | 3 + share/tst/templates/py/default | 3 + share/tst/templates/s/default | 22 + share/tst/templates/sed/default | 1 + share/tst/templates/sed/file | 3 + share/tst/templates/sh/default | 2 + share/tst/templates/vim/default | 1 + share/tst/vim/tst.vim | 1 + 27 files changed, 1446 insertions(+) create mode 100644 Makefile create mode 100644 README.adoc create mode 100755 bin/rungdb create mode 100755 bin/runtst create mode 100755 bin/tst create mode 100644 docinfo.conf create mode 100644 man/tst.1 create mode 100644 rendered.html create mode 100644 share/tst/gdb/c.gdb create mode 100644 share/tst/gdb/cpp.gdb create mode 100644 share/tst/gdb/global.gdb create mode 100644 share/tst/gdb/nasm.gdb create mode 100755 share/tst/mappings.vim create mode 100644 share/tst/templates/bash/default create mode 100644 share/tst/templates/c/default create mode 100644 share/tst/templates/cpp/default create mode 100644 share/tst/templates/js/default create mode 100644 share/tst/templates/lua/default create mode 100644 share/tst/templates/nasm/default create mode 100644 share/tst/templates/pl/default create mode 100644 share/tst/templates/py/default create mode 100644 share/tst/templates/s/default create mode 100644 share/tst/templates/sed/default create mode 100644 share/tst/templates/sed/file create mode 100644 share/tst/templates/sh/default create mode 100644 share/tst/templates/vim/default create mode 100644 share/tst/vim/tst.vim 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