#!/bin/sh

ROOT="${HOME:-/home/amolinae}/Documents/Miscellaneous/alpchroot"

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