This repository contains the interactive terminal shell (bsh) and primary shell scripts (bshrc, startup.bsh, boot.bsh) for BoredOS.
This repository is designed to compile either within the main BoredOS tree OR completely standalone.
If built from the BoredOS root tree, the build system passes BOREDOS_SDK to the Makefile. It immediately compiles bsh.elf against the shared pre-built SDK without duplicate clones:
make BOREDOS_SDK=/path/to/shared/sdkIf cloned completely separately in isolation, running make will automatically bootstrap the SDK:
makeIf build/sdk is missing, the Makefile automatically clones the pure standard library from https://github.com/boredos/libc.git, compiles it, installs it to build/sdk, and uses it to build bsh.elf standalone!
To stage the shell executable and script assets inside your BoredOS initrd root filesystem directory:
make DESTDIR=/path/to/initrd/root install- Binary is routed to
/bin/bsh.elf - Script assets are routed to
/Library/bsh/