Skip to content

Instantly share code, notes, and snippets.

@goooooouwa
Created October 20, 2013 08:28
Show Gist options
  • Save goooooouwa/7066464 to your computer and use it in GitHub Desktop.
Save goooooouwa/7066464 to your computer and use it in GitHub Desktop.
#!/bin/bash
### this script use ctags installed by Homebrew to generate tags for all gems specified in your Rails project's gemfile.
# `brew --prefix` display the install path of brew
# generate tags for all gems specified in the gemfile.
bundle show --paths | xargs `brew --prefix`/bin/ctags -R
# index the tags and append the tags for your project run
`brew --prefix`/bin/ctags -R -a *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment