Bash/ZSH/sh Library written for extremely fast developtment.
  • Shell 98.7%
  • Makefile 1.3%
Find a file
2026-06-01 20:55:00 +02:00
.src added auto updater on demand 2026-06-01 20:55:00 +02:00
lib added git and some fixes on files 2026-05-18 11:35:45 +02:00
.gitignore adding test.sh to gitignore 2026-04-30 16:54:12 +02:00
blib.sh added blib.sh helper file 2026-06-01 20:46:39 +02:00
makefile added blib.sh helper file 2026-06-01 20:46:39 +02:00
README.md more improvements 2026-05-02 13:51:28 +02:00

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!