Skip to content

Instantly share code, notes, and snippets.

@ryenus
Last active December 10, 2015 12:18
Show Gist options
  • Save ryenus/4432909 to your computer and use it in GitHub Desktop.
Save ryenus/4432909 to your computer and use it in GitHub Desktop.
unload rvm
# functions and variables
unset $(set | awk -F"[= ]" '/^\w*(RUBY|GEM|IRB|rvm|gem|rubies)\w*(=| \(\))/ {print $1}')
# aliases
unalias $(alias | awk -F"[= ]" '/rvm/ {print $2}')
# others
unset cd file_exists_at_url popd pushd
# PATH
export PATH=$(echo $PATH | tr ':' '\n' | grep -v rvm | tr '\n' ':' | sed 's/:$//')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment