A collection of common bash libraries
From within a git repo.
git submodule add https://github.com/nicholaswilde/libbash
From outside a git repo.
git clone https://github.com/nicholaswilde/libbash.git
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# shellcheck source=/dev/null
source "${DIR}/libbash/init"
source "${LIBBASH_DIR}/str"
lb_to_upper_all "foo"
From the base dir with libbash
submodule installed.
git submodule update --init --recursive --remote
Documentation can be found here.
Inspiration for this repository has been taken from cyberark/bash-lib and dylanaraps/pure-bash-bible.
This project was started in 2022 by Nicholas Wilde.