Skip to content

Instantly share code, notes, and snippets.

@frizbee
Forked from nazgob/ctags.setup
Last active December 30, 2019 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frizbee/b168052eaf7bf339078e73182442d5a2 to your computer and use it in GitHub Desktop.
Save frizbee/b168052eaf7bf339078e73182442d5a2 to your computer and use it in GitHub Desktop.
ctags setup on mac
# you have ctags but it does not work...
$ 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
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
#try again!
$ ctags -R --exclude=.git --exclude=log *
#puts tags file into you .gitignore (probably global) and you're all set!
tags
!tags/ # keep this to ignore directories with name tags
# PS for autogeneration and auto re-indexing, follow the steps:
# https://github.com/manasthakur/git_template
#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