Batsh
fishion
Batsh | fishion | |
---|---|---|
8 | 1 | |
4,281 | 0 | |
0.1% | - | |
2.8 | 10.0 | |
about 1 year ago | almost 4 years ago | |
OCaml | Shell | |
- | ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Batsh
-
Show HN: Just.sh – compiler that turns Justfiles into portable shell scripts
https://github.com/batsh-dev-team/Batsh
https://github.com/tdenniston/bish
(Just fyi. I've been collecting links to similar things because of Reasons).
-
“Exit Traps” Can Make Your Bash Scripts Way More Robust and Reliable
I wish there was a nicer shell scripting language that simply transpiled to Bash and would generate all this boilerplate code for me. There is https://batsh.org/ which has a nice syntax but it doesn't even support pipes or redirection, making it pretty worthless for shell scripting. I haven't found any other such scripting languages.
-
If Bash had more intuitive syntax and wasn't so annoying to use, would it have made scripting languages more popular for more tasks earlier on?
There are some languages that compile into bash like Batch. Shell commands can also be called from Python code using this (never tried it): https://plumbum.readthedocs.io/en/latest/index.html
-
Make bash script executable on Android and Windows
Maybe https://github.com/batsh-dev-team/Batsh
- Any tips to convert bat scripts to sh?
-
s/bash/zsh/g
Not really what you're asking for, but a language that compiles to bash for portability reminded me of Batsh [0], a C-like language that compiles to bash for Linux/Mac and batch for Windows.
[0] https://github.com/batsh-dev-team/Batsh
-
[QUESTION] Cross-platform scripting
There used to be something called Batsh as well but no longer seems to be actively developed
-
Why Create a New Unix Shell? (2021)
There are a couple projects that provide a language that compiles to Bash, which gets around Oil's portability problem somewhat. Bish and Batsh come to mind.
fishion
-
s/bash/zsh/g
How would you normally do it? Because you can still put redefinitions of all the standard functions into a single file and load them with `.` as you would with other shells.
There's also this package, which the author admits only allows "slight" customization, to implement sessions: https://github.com/farzadghanei/fishion
What are some alternatives?
linode-caddy - Ansible role that sets up a web server running Caddy on Linode.
sh - Python process launching
fzf-tab - Replace zsh's default completion selection menu with fzf!
run-hidden - run-hidden runs Windows console apps like PowerShell with hidden console window.
zsh-abbr - The zsh manager for auto-expanding abbreviations, inspired by fish shell.
zplug - :hibiscus: A next-generation plugin manager for zsh
zgenom - A lightweight and fast plugin manager for ZSH
zsh-autosuggestions - Fish-like autosuggestions for zsh
scripting-field-guide - A booklet on mid-advanced scripting techniques
powerlevel10k - A Zsh theme
shfmt - Dockernized shfmt. This formats shell script.