Skip to content

Instantly share code, notes, and snippets.

@mlpinit
Forked from nazgob/ctags.setup
Created September 25, 2018 14:10
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 mlpinit/75d15c9d083a29a9809f2660d451d83d to your computer and use it in GitHub Desktop.
Save mlpinit/75d15c9d083a29a9809f2660d451d83d 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!
#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