#!/bin/sh

ROOT=""$HOME"/Documents/Miscellaneous/alpchroot"

case "$1" in
  "") echo "usage: bwroot ARGUMENT" >&2; exit 1; ;;
  *) 
    bwrap \
    --bind "$ROOT" / \
    --bind /proc /proc \
    --dev-bind /dev /dev \
    --bind "$PWD" "$PWD" \
    --bind "$HOME" "$HOME" \
    --unshare-all \
    --share-net \
    "$@" ;;
esac