Bash/ZSH/sh Library written for extremely fast developtment.
- Shell 98.7%
- Makefile 1.3%
| .src | ||
| lib | ||
| .gitignore | ||
| blib.sh | ||
| makefile | ||
| README.md | ||
blib.sh
b(ash) lib
This is my own library for bash (and possibly zsh or sh) with an easy to
use syntax and some batteries included.
getting started
You have 2 options. Embed the library into your project (you might want to do some changes on the functions, some extentions etc.) or you can just run the install script directly.
install script
Just run the command below to install blib.sh at: $HOME/.local/share/blib.sh
curl -fsSL k4li.de/blib | bash
start using blib.sh
When installed normally with the install script, you can just source one file to get started:
#!/usr/bin/env bash
. "$HOME/.local/share/blib.sh/blib.sh" || exit 1
import os colors log # start importing modules!
embed the library into your project
If you want to have the library at another place, or just want to use it directly inside your project, you can just clone it to any path you like:
cd $HOME/opt/projects/bash-project
git clone --depth=1 https://git.k4li.de/pika/blib.sh
Then just specify the OVERWRITE_BLIB variable to change the path for the imports
declare -g OVERWRITE_BLIB="$HOME/opt/projects/bash-project/blib.sh"
. "$OVERWRITE_BLIB/blib.sh"
import os colors log # start importing modules!