>>108478696
i use it to sandbox stuff and give it access to the pwd, ie meme vibecode shit.
ie alias opencode = "sb npx opencode"
#!/usr/bin/env bash
sandbox=~/.local/share/sandboxes/sandbox
mkdir -p $sandbox
PWD="$(realpath $PWD)"
PWDARG="--bind $PWD $PWD"
if [ "$PWD" == "$HOME" ]
then
echo PWD is HOME, not binding it
PWDARG=""
fi
Comment too long. Click here to view the full text.