A very handy tool for cross-language peps.
shebang
helps to keep stuff easy and pain-less by using #!/shebang
at the head of files to any supported languages*, allowing executable flag via chmod
and simply executing it.
Or, just use $ sb $FILENAME
to execute it!!
Well, you might call it a simple cow power 😜
It's really a pain in the fingers to compile, execute the program and doing it over and over again along with different languages with different flavors of steps to perform the action. And, really annoying at times.
Just run
$ sh ./main.sh --install
- Using it as shebang!
- Add
#!/shebang
to the head of the file you want to execute.- Now, provide it some executable permissions
$ chmod +x $FILENAME
(accordingly)- Important: Do not tamper with the file-extension** as it's the only known way (to me) for recon of the language.
- Using the command
sb
- Just run as
% sb $FILENAME
It checks the file extension of the file to determine which language is used and follows the simple instruction(s) to compile and execute ( or just execute it 😉)
Simply run
$ sh ./main.sh --uninstall
Want the new update of the script? Just
$ sh ./main --reinstall
NOTE: Make sure you've the latest clone, first.
I am on a plan to support as many languages as possible while making this thing as light as possible. And, currently supported languages are listed below:
- Python
- Ruby
- Rust Lang
- Go Lang
- C
- JavaScript
- A few Shell Languages (sh, bash, zsh, fish)
I would love to hear them all 🙂
*Your favorite language is not listed? Please feel free to open an issue for it.
**If you tend to modify it, the script won't be able to detect the language.