Skip to content

Instantly share code, notes, and snippets.

@mlpinit
Forked from nazgob/ctags.setup
Created September 25, 2018 14:10
Show Gist options
  • Select an option

  • Save mlpinit/75d15c9d083a29a9809f2660d451d83d to your computer and use it in GitHub Desktop.

Select an option

Save mlpinit/75d15c9d083a29a9809f2660d451d83d to your computer and use it in GitHub Desktop.

Revisions

  1. @nazgob nazgob created this gist Jan 6, 2012.
    17 changes: 17 additions & 0 deletions ctags.setup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,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!