Modified nvm plugin to fit my needs.