Skip to content

Instantly share code, notes, and snippets.

rvm use 1.9.x@gemset_name --create
@rafaelsachetto
rafaelsachetto / gist:758655
Created December 29, 2010 15:53
Dica para ambiente usando RVM (pushd/popd)
# hack to rvm invoke .rvmrc
cd_with_pushd()
{
if [ $# -eq 0 ]; then
DIR="${HOME}"
else
DIR="$1"
fi
pushd "${DIR}"
@rafaelsachetto
rafaelsachetto / remove-all-named-gems.sh
Last active January 27, 2020 13:54
Remove all named gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
:benchmark: false
:verbose: true
:update_sources: true
gem: --no-ri --no-rdoc
install: --env-shebang
:sources:
- http://gemcutter.org
- http://gems.rubyforge.org/
- http://gems.github.com/
:backtrace: false