Skip to content

Instantly share code, notes, and snippets.

@mtwentyman
Created August 2, 2013 14:13
Show Gist options
  • Save mtwentyman/6140194 to your computer and use it in GitHub Desktop.
Save mtwentyman/6140194 to your computer and use it in GitHub Desktop.
how to open gems in sublime text editor
# ~/.bash_aliases
gempaths ()
{
gemdir=`gem environment gemdir`/gems;
paths='';
for i in "$@";
do
paths="$paths `echo $gemdir/$i`";
done;
echo -e $paths
}
# shell
$ subl `gempaths {active,action,rail}*3.2.13`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment