Previously, the awesome Geoff Franks invented a way to customize the root user's environment in any BOSH job https://blog.starkandwayne.com/2015/06/05/customizing-your-bosh-vms-root-environment/

I said, "let's do a bash | curl installer" so its much easier to get the custom environment into a one-time VM for debugging.

He said,

reply

Then MKB chimed in,

mkb-reply

So, you've been warned. Because I did it anyway.

https://github.com/cloudfoundry-community/bosh-root-env is a starting point for a customizable root bash environment.

To install by the critized curl | bash method, first bosh ssh into a VM, change to root user and install:

sudo su -  
curl https://raw.githubusercontent.com/cloudfoundry-community/bosh-root-env/master/installer.sh | bash  

Exit from root user and change back again:

exit  
sudo su -  

Your root user now has all your favourite .bashrc, .vimrc, aliases and more.

But don't tell Geoff I did this.