bash-it/plugins/available/vagrant-as-root.plugin.bash

5 lines
142 B
Bash

# Simple function for vagrant ssh that immediately switches to root.
function vsshr() {
vagrant ssh $1 -- -t 'sudo su -; /bin/bash'
}