Skip to content

Instantly share code, notes, and snippets.

@johanlunds
Last active August 29, 2015 14:15
Show Gist options
  • Save johanlunds/a2bb17e20efbc89078d5 to your computer and use it in GitHub Desktop.
Save johanlunds/a2bb17e20efbc89078d5 to your computer and use it in GitHub Desktop.
Generate ctags file for Ruby project
gem install ripper-tags
rbenv rehash
ripper-tags -f .tags -R --exclude=.git --exclude=log . $(bundle list --paths)
# Relative paths may be better when only generating for project:
ripper-tags -f .tags -R --exclude=.git --exclude=log --tag-relative .
#
# OLD using https://github.com/fishman/ctags:
#
# Also see https://github.com/ivalkeen/guard-ctags-bundler
# Ruby stdlib path: `RbConfig::CONFIG['rubylibdir']`
BIN='/Users/johan_lunds/Documents/Kod/ctags/dist/bin/bin/ctags'
$BIN -f .tags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths) /usr/local/var/rbenv/versions/2.1.5/lib/ruby/2.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment