>>106465054
Just use a container.
docker run -it -v $HOME:$HOME -w $HOME --rm --pull always debian bash
Feel free to substitute docker for podman or whatever else and debian for whatever container you want to run.
Also if you're in a specific scratch/work directory, instead of mounting your entire $HOME you can do something like:
-v $PWD:$PWD -w $PWD
to make your current directory available to the container.