Last active
December 10, 2015 12:18
-
-
Save ryenus/4432909 to your computer and use it in GitHub Desktop.
unload rvm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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