Skip to content

Instantly share code, notes, and snippets.

@aisuii
Created April 21, 2011 09:35
Show Gist options
  • Save aisuii/934068 to your computer and use it in GitHub Desktop.
Save aisuii/934068 to your computer and use it in GitHub Desktop.
# rvm use xxx するたびきりかわってよくない
current_gems_sym_path="${HOME}/.current_gems"
current_gems_path="${rvm_path}/gems/${rvm_ruby_string}/gems"
if [[ -L $current_gems_sym_path ]] ; then
rm $current_gems_sym_path
elif [[ -f "${current_gems_sym_path}" ]] ; then
echo "${current_gems_sym_path} exist!"
return
fi
ln -s $current_gems_path $current_gems_sym_path
echo "${current_gems_sym_path} -> ${current_gems_path}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment