Batsh
zgenom
Batsh | zgenom | |
---|---|---|
8 | 10 | |
4,281 | 330 | |
0.1% | - | |
2.8 | 4.7 | |
about 1 year ago | 13 days ago | |
OCaml | Shell | |
- | BSD 2-clause "Simplified" 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.
zgenom
-
Current state of plugin managers
If you liked legacy zgen, zgenom picks up where it left off and is simple but featureful
-
What tools or systems do you use to manage your time, improve your productivity or to make your life easier?
zgenom for zsh plugin manager. I've found this one to be fastest when compared to others since it generates a static init script
-
What is the best plugin manager in your opinion?
Author of Antidote here. I want to start by saying u/MrMarlon did a great job with znap, and it's a solid choice. zcomet and zgenom are also great. For modern Zsh plugin managers that are actively developed, I'd say these are my top 4 picks.
-
⚙️ ❮ ZSH Plugin Standard ❯
Plugin managers: ZI, Zinit, Zpm, Zgenom, Zgen (after and if the PR will be merged).
-
What if I told you you don't really need a Zsh plugin manager?
Have you had a look at zgenom?
-
zed - yet another plugin manager for zsh. Nothing fancy, nothing new. Just does the basic stuffs - pulls, compiles and loads the plugins... does some completion stuffs. Fairly simple implementation with about 300 LOC. Why? 'cause I used zinit before and it vanished recently... so why not? 🤷🏼♂️
Would you mind listing zgenom instead of/additionally to zgen? It's a maintained fork of zgen which has received some bug fixed and new features 😊
-
Zgenom now updates in the background 🏃
Please check it out at https://github.com/jandamm/zgenom and give a ⭐️ if you like it :)
-
s/bash/zsh/g
Or zgenom[0]. Or if you want to get ESPECIALLY froggy and async with your shell startup, zinit[1]. I ran zinit for years before moving to zgenom. A large swath of electron apps use some weird NPM library to “resolve” your shell environment by kicking up a full interactive shell and then reading the environment variables out of it. zinit messed with that and would hang a lot because of all it’s async loading.
[0] https://github.com/jandamm/zgenom
-
zsh plugin managers ... a review ...
if [[ ! -f "${HOME}/.zgenom/zgenom.zsh" ]]; then git clone https://github.com/jandamm/zgenom.git "${HOME}/.zgenom" fi source "${HOME}/.zgenom/zgenom.zsh" # check for updates ever 7 days zgenom autoupdate # only runs when ```.zgenom/sources/init.zsh``` doesn't exist # use zgenom reset to delete init.zsh if ! zgenom saved; then zgenom load zsh-users/zsh-autosuggestions zgenom load zsh-users/zsh-syntax-highlighting zgenom load marlonrichert/zsh-autocomplete zgenom load mafredri/zsh-async zgenom load sindresorhus/pure zgenom load ${HOME}/.zsh/iterm2_shell_integration.zsh zgenom save fi
-
The VSCode Insiders Build for Apple Silicon is ridiculously fast
As haywire said you can try https://github.com/jandamm/zgenom (I'm the author).
What are some alternatives?
linode-caddy - Ansible role that sets up a web server running Caddy on Linode.
zsh-snap - ⚡️ Znap! Fast, easy-to-use tools for Zsh dotfiles & plugins, plus git repos
fzf-tab - Replace zsh's default completion selection menu with fzf!
zinit - 🌻 Flexible and fast ZSH plugin manager
zsh-abbr - The zsh manager for auto-expanding abbreviations, inspired by fish shell.
antigen - The plugin manager for zsh.
scripting-field-guide - A booklet on mid-advanced scripting techniques
zplug - :hibiscus: A next-generation plugin manager for zsh
zpm - Zpm— Zsh Plugin Manager
warp - Create self-contained single binary applications
xxh - 🚀 Bring your favorite shell wherever you go through the ssh. Xonsh shell, fish, zsh, osquery and so on.