Don't use sudo -i since it creates a new shell