fish-functions
Batsh
fish-functions | Batsh | |
---|---|---|
2 | 8 | |
135 | 4,281 | |
- | 0.1% | |
5.8 | 2.8 | |
2 months ago | about 1 year ago | |
Shell | OCaml | |
- | - |
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.
fish-functions
-
Fish Shell
I think fish's syntax is cleaner, though as others have pointed out, the incompatibility is often not worth it.
Even though it's "sane", I would say it's not "powerful". It's significantly less powerful than bash:
e.g. there is a list of missing things here:
https://github.com/pirate/fish-utils/blob/master/README.md
https://github.com/fish-shell/fish-shell/issues/159
I have a particular viewpoint since I'm writing a shell for scripting, and I wrote this FAQ.
-
Why Create a New Unix Shell? (2021)
Issues collected from an experienced fish programmer. I just learned about this and some are pretty bad: https://github.com/pirate/fish-functions/blob/master/README.md
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.
What are some alternatives?
bass - Make Bash utilities usable in Fish shell
linode-caddy - Ansible role that sets up a web server running Caddy on Linode.
sublime-fish - A robust Sublime Text syntax package for fish
fzf-tab - Replace zsh's default completion selection menu with fzf!
fish_logo - 🐠 Fish shell colorful ASCII-art logo
zsh-abbr - The zsh manager for auto-expanding abbreviations, inspired by fish shell.
atom - Shell scripting that will knock your socks off
zgenom - A lightweight and fast plugin manager for ZSH
fish-shell - The user-friendly command line shell.
scripting-field-guide - A booklet on mid-advanced scripting techniques
dotfiles - All my dotfiles.
zplug - :hibiscus: A next-generation plugin manager for zsh