Skip to content

Instantly share code, notes, and snippets.

@gamafranco
Forked from ryenus/rvm-unload.sh
Created March 18, 2013 17:30
Show Gist options
  • Save gamafranco/5189089 to your computer and use it in GitHub Desktop.
Save gamafranco/5189089 to your computer and use it in GitHub Desktop.
# 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