A small program to run scripts 'my way' without using per-lang build files.
You can create a .nb.conf file in your $HOME directory to overwrite the defaults provided.
If you don't, assume they are this:
c: "gcc -o out {file} && ./out && rm out"
cpp: "g++ -o out {file} && ./out && rm out"
go: "go run {file}"
java: "javac {file} && java {name} && rm {name}.class"
js: "node {file}"
kt: "kotlinc {file} -include-runtime -d out.jar && java -jar out.jar && rm out.jar"
py: "python3 {file}"
rb: "ruby {file}"
rs: "rustc -o out {file} && ./out && rm out"
swift: "swift {file}"
ts: "node {file}"{file} -> full name,
{name} -> (without extension),
{ext} -> extension
To install nb clone this repository and run cargo build --release.
Afterwards, copy the built binary to your desired destination
(most likely sudo cp target/release/nevbuild /usr/local/bin/nb)
To run a file using nb, simply use:
nb <file>nb can also be used as a shebang; simply prepend your file with:
#!/path/to/installed/nbor
#!/usr/bin/env nband make it an executable (chmod +x <file>)