How to exclude multiple directories with Exuberant ctags?

pertrai1 picture pertrai1 · Sep 13, 2014 · Viewed 31.2k times · Source

I have looked and tried to use exuberant ctags with no luck with what I want to do. I am on a Mac trying to work in a project where I want to exclude such directories as .git, node_modules, test, etc. When I try something like ctags -R --exclude=[.git, node_modules, test] I get nothing in return. I really only need to have it run in my core directory. Any ideas on how to accomplish this?

Answer

aalazz picture aalazz · Sep 13, 2014

The --exclude option does not expect a list of files. According to ctags's man page, "This option may be specified as many times as desired." So, it's like this:

ctags -R --exclude=.git --exclude=node_modules --exclude=test