A collection of many personal functions for modern Bash
OTHER License
A collection of many personal functions for modern Bash to write safe and readable code quickly
They are grouped by function type, and some functions are specific to a particular system.
I like Arch Linux, so there may be many for it.
These are only part of FasBashLib's main libraries.
Upper camel case
, Lower camel case
, and Snake case
Array
)URL
)Aur
, ArchLinux
, Pacman
, SrcInfo
)Modern Bash is feature-rich, making it possible to write secure code compared to pure shells.
If you are coding utilizing these features, you will find yourself writing the same code over and over again.
Also, Bash has no type restrictions, so even something as simple as evaluating boolean values can become redundant if you consider safety.
This library has many functions, especially for arrays, that make it easy to write safe code that takes special characters such as whitespace into account.
Furthermore, shell scripts currently lack a system for managing and loading libraries in a consistent manner.
FasBashLib is modular and assists in adding and removing functions and loading them in various environments.
If you want to add your own functions, fork this project and place your shell scripts in src.
Testing, documentation generation, local installation, and dynamic loading from online are all supported.
See How to use it
You can read the latest auto generated documents here.
Or download document from Release Page
See How to test
You can add your script to this list. Please send a Pull request.
FasBashLib is composed of these projects. Deepest thanks to their contributors!
Readlink.sh
are taken from this repository.Build-Single.sh
formats the generated scruples using shfmt.Parsrs
)