Last active
August 29, 2015 14:15
-
-
Save johanlunds/a2bb17e20efbc89078d5 to your computer and use it in GitHub Desktop.
Generate ctags file for Ruby project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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