Skip to content

Instantly share code, notes, and snippets.

@qickstarter
Created September 11, 2012 17:32
Show Gist options
  • Select an option

  • Save qickstarter/3700075 to your computer and use it in GitHub Desktop.

Select an option

Save qickstarter/3700075 to your computer and use it in GitHub Desktop.
_rtags() {
if [ -d ~/.rbenv ]; then
echo "rbenv"
export RUBIES_DIR=`rbenv which ruby | sed -e 's/\/bin\/ruby//'`
else if [ -d ~/.rvm ]
export RUBIES_DIR=`rbenv which ruby | sed -e 's/\/bin\/ruby//'`
fi
ctags -R --sort=yes --exclude=*.js --exclude=log --exclude=.git --langmap=RUBY:.rb $RUBIES_DIR -f ~/tags
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment