Batsh
zsh-abbr
Batsh | zsh-abbr | |
---|---|---|
8 | 26 | |
4,281 | 478 | |
0.1% | - | |
2.8 | 7.8 | |
about 1 year ago | about 2 months ago | |
OCaml | Shell | |
- | GNU General Public License v3.0 or later |
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.
zsh-abbr
- Favorite aliases?
-
zsh-abbr v5 released 🚢 starring multi-word abbreviations
If you have trouble, open a GitHub issue https://github.com/olets/zsh-abbr/issues/new/choose
- zsh-abbr v4.8.3: better zsh-autosuggestions support
- zsh-abbr v5.0.0.beta-1 pre-release. multi-word abbreviations!
-
Alias functionality that shows the actual command and not just the alias
The abbreviations from Fish will expand the moment you hit space or execute the command. It's basically like an alias, but will expand. However this is not possible in Bash. Zsh itself does not support this, but there is an addon I am using for: https://github.com/olets/zsh-abbr
-
Snippet/expansion and own aliases
But you aren't limited to something OMZ specific. zsh-abbr is a manager for "abbreviations" (similar to auto-expanding aliases but with additional tools, and saving everything to a file which can be backed up). And there are zsh snippet managers… I haven't used any so can't speak to them; pet might be the most popular.
-
zsh-abbr 4.8.0: now XDG_CONFIG_HOME-friendly
Something broke? Open an issue
-
Can you add features such as Syntax highlighting and Auto-suggestions to Bash?
Enhanced completion: Extend completion by syntax-aware completion, completion with quotes and parameter expansions in prefix texts, ambiguous candidate generation, etc. Also, menu-complete supports selection of candidates in menu (candidate list) by cursor keys, TAB and S-TAB. The feature auto-complete supports the automatic suggestion of completed texts as in fish and zsh-autosuggestions (with Bash 4.0+). The feature menu-filter integrates automatic filtering of candidates into menu completion (with Bash 4.0+). There are other functionalities such as dabbrev and sabbrev like zsh abbreviations or zsh-abbr.
-
trash-cli: rm alternative that lets you restore deleted files
I know. I have an addon for ZSH which mimics the Fish like abbreviations: https://github.com/olets/zsh-abbr
-
Sharing some bash aliases
I am on ZSH and prefer abbreviations (with an addon to mimic Fish abbr), because the command will expand on typing and I change it before execution. Also it is then correctly logged as expanded version in the history. However, I also have a few aliases too:
What are some alternatives?
linode-caddy - Ansible role that sets up a web server running Caddy on Linode.
fish-pet
fzf-tab - Replace zsh's default completion selection menu with fzf!
zgenom - A lightweight and fast plugin manager for ZSH
zsh-vi-mode - 💻 A better and friendly vi(vim) mode plugin for ZSH.
scripting-field-guide - A booklet on mid-advanced scripting techniques
oh-my-zsh - 🙃 A delightful community-driven (with 1700+ contributors) framework for managing your zsh configuration. Includes nearly 300 optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, etc), over 140 themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community. [Moved to: https://github.com/ohmyzsh/ohmyzsh]
zplug - :hibiscus: A next-generation plugin manager for zsh
warp - Create self-contained single binary applications
fast-syntax-highlighting - (Short name F-Sy-H). Syntax-highlighting for Zshell – fine granularity, number of features and multiple shipped themes.