Bach
Summary: A modular bash configuration toolkit for developers, offering organized modules for common tasks, logging, and development tools with easy installation.
⚠️ WARNING: Do NOT move this directory after installation. The configuration sources files using absolute paths that will break if relocated.
Description
Bach provides a lightweight, modular way to manage your bash environment with organized modules for common tasks, logging, development tools, and more.
Installation
Python (Recommended)
pip install bach-cli
# or with pipx (preferred for CLI tools)
pipx install bach-cli
bach install
This will add the bach initialization to your ~/.bashrc.
From source
- Clone the repository:
git clone <repo-url>
cd bach
- Install the configuration:
make install
This will add the bach initialization to your ~/.bashrc.
Updating
When a new version is released, run:
bach update
This upgrades the package (via pip or pipx) and reinstalls the shell scripts in one step.
Or manually:
pip install --upgrade bach-cli
# or with pipx
pipx upgrade bach-cli
bach install
Usage
After installation, restart your shell or run source ~/.bashrc to load the configuration.
Available commands:
bach install— Install bach configuration (with shell completion)bach uninstall— Remove bach configurationbach update— Upgrade package and reinstall configurationbach reload— Show how to reload configuration in current shellbach clean— Alias for uninstall
Shell completion (bash) is automatically enabled during bach install. It requires bash 4.4+ — if you're on macOS with the default bash 3.2, install a newer bash via brew install bash to use completions.
Available modules:
common.sh: Common utilitieslogging.sh: Logging functionsdocker.sh: Docker helpersfiles.sh: File operationsgit.sh: Git utilitieshomebrew.sh: Homebrew managementterminal.sh: Terminal setuplastly.sh: Final configurations
To reload modules in the current shell: reload_bash or source ~/.bashrc
Linting
To check shellscripts, install shellcheck and run shellcheck --severity=error <input_file>.
For VSCode users, install the Bash IDE extension (mads-hartmann.bash-ide-vscode) and add the following to your settings.json:
"bashIde.shellcheckArguments": "--severity=warning"
Uninstallation
Python
bach uninstall
From source
make clean
Or manually: bash setup.sh uninstall
Structure
bach_cli/: Python package (CLI entry point)src/bach/: Module files (shell scripts)setup.sh: Installation script (legacy)bach_lite.sh: Lightweight utility scriptMakefile: Build/install targets (legacy)pyproject.toml: Poetry / Python packaging configuration
Metadata
Release files for bach-cli 2026.6.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bach_cli-2026.6.3.5.tar.gz | 31.0 kB | Without provenance | Details for bach_cli-2026.6.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bach_cli-2026.6.3.5-py3-none-any.whl | Python 3 | none | any | Details for bach_cli-2026.6.3.5-py3-none-any.whl |
Total release size: 68.1 kB
Release files / bach_cli-2026.6.3.5.tar.gz
| Download URL | bach_cli-2026.6.3.5.tar.gz |
|---|---|
| Size | 31.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b82a4c2390fbc1e0a6c19dcd67e33b79342a1d4709ef18e755a59236c94c5883
|
|
BLAKE2b-256 checksum How to use checksums |
816e3a6f4d0eddc8b34b5deb835ca8387cc0cba32908bcb11f6c5e922c26f2d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.9 Darwin/25.4.0
|
Release files / bach_cli-2026.6.3.5-py3-none-any.whl
| Download URL | bach_cli-2026.6.3.5-py3-none-any.whl |
|---|---|
| Size | 37.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa7db6a01aedd249a4fc70f03e3520cc7b6b9d9032057d5a35a1f8e17f4eafdf
|
|
BLAKE2b-256 checksum How to use checksums |
b4916bf05167981b1941b40dc8558132d87dd22c77f3f9bebf21ac89024e68a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.9 Darwin/25.4.0
|
Security for bach-cli 2026.6.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.