public
Last active

ctags setup on mac

  • Download Gist
ctags.setup
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# 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!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.