Skip to content

Instantly share code, notes, and snippets.

@cmatheson
Created January 26, 2016 19:09
Show Gist options
  • Save cmatheson/69ada89b97e746983237 to your computer and use it in GitHub Desktop.
Save cmatheson/69ada89b97e746983237 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
trap "rm -f tags.$$" EXIT
ctags --tag-relative -Rftags.$$ \
--exclude=.git \
--exclude=public/javascripts/vendor \
--exclude=public/flash \
--exclude=node_modules \
--exclude=public/javascripts/compiled \
--exclude=public/javascripts/bower \
--exclude=public/optimized \
--exclude=canvas_quizzes \
--exclude=client_apps \
--exclude=public/dist \
--exclude=public/doc \
--exclude=doc/api \
--exclude=spec/javascripts/compiled
mv tags.$$ tags
# also see http://tbaggery.com/2011/08/08/effortless-ctags-with-git.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment