#!/usr/bin/env sh if [ -z "$1" ]; then echo "Must provide a project directory to mount" exit 1 fi; bwrap \ --ro-bind /usr /usr \ --ro-bind /lib /lib \ --ro-bind /lib64 /lib64 \ --ro-bind /bin /bin \ --ro-bind /etc/ssl /etc/ssl \ --ro-bind /etc/ca-certificates /etc/ca-certificates \ --ro-bind /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf \ --dev /dev \ --proc /proc \ --tmpfs /home/$(whoami) \ --tmpfs /tmp \ --bind ~/.local/share/uv/ /home/$(whoami)/.local/share/uv \ --bind ~/.local/share/npm/ /home/$(whoami)/.local/share/npm \ --bind ~/.cache/uv /home/$(whoami)/.cache/uv \ --bind ~/.cache/huggingface /home/$(whoami)/.cache/huggingface \ --bind ~/.cargo /home/$(whoami)/.cargo \ --bind ~/.rustup /home/$(whoami)/.rustup \ --bind ~/.pi /home/$(whoami)/.pi \ --clearenv \ --setenv HOME /home/$(whoami) \ --setenv USER $(whoami) \ --setenv SHELL /bin/bash \ --setenv PATH /home/$(whoami)/.local/bin:/home/$(whoami)/.local/share/npm/bin::/usr/local/sbin:/usr/local/bin:/usr/bin \ --bind "$1" /home/$(whoami)/project/ \ --chdir /home/$(whoami)/project/ \ bash