Skip to content

Instantly share code, notes, and snippets.

@wayneseymour
Forked from nazgob/ctags.setup
Last active August 29, 2015 14:02
Show Gist options
  • Save wayneseymour/4d2296885fe4693cb0db to your computer and use it in GitHub Desktop.
Save wayneseymour/4d2296885fe4693cb0db to your computer and use it in GitHub Desktop.
### you have ctags but it does not work...
```shell
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
```
### you need to get new ctags, i recommend homebrew but anything will work
```shell
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
```
### try again!
```shell
ctags -R --exclude=.git --exclude=log *
```
> puts tags file into you .gitignore (probably global) and you're all set!
#### What I did in addtion to the above statements:
```shell
$ ctags -R --exclude=.git *.py *.xml --exclude=SPECIFIC_DIR --exclude=SPECIFIC_DIR *
```
*PS. i was inspired to install ctags by https://workshops.thoughtbot.com/vim video by @r00k, thanks man!*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment