Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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!
@gooooloo

This comment has been minimized.

Show comment Hide comment
@gooooloo

gooooloo May 31, 2014

Thanks man. It helps.

Thanks man. It helps.

@wayneseymour

This comment has been minimized.

Show comment Hide comment
@wayneseymour

wayneseymour Jun 10, 2014

This made my night! 👍

This made my night! 👍

@hunterlodge

This comment has been minimized.

Show comment Hide comment
@hunterlodge

hunterlodge Jun 15, 2014

great. it also helps me out. Thanks

great. it also helps me out. Thanks

@jpowell1218

This comment has been minimized.

Show comment Hide comment
@jpowell1218

jpowell1218 Oct 4, 2014

Much appreciated.

Much appreciated.

@HackRanger

This comment has been minimized.

Show comment Hide comment
@HackRanger

HackRanger Oct 16, 2014

Thanks :)

Thanks :)

@umangjeet

This comment has been minimized.

Show comment Hide comment
@umangjeet

umangjeet Nov 7, 2014

Thanks for this one, was struggling with this one since long

Thanks for this one, was struggling with this one since long

@conorliv

This comment has been minimized.

Show comment Hide comment
@conorliv

conorliv Mar 12, 2015

Just what I was looking for!

Just what I was looking for!

@yuyan2do

This comment has been minimized.

Show comment Hide comment
@yuyan2do

yuyan2do Apr 22, 2015

Thanks :)

Thanks :)

@balaclark

This comment has been minimized.

Show comment Hide comment
@balaclark

balaclark Jun 12, 2015

thanks!

thanks!

@JonShepChen

This comment has been minimized.

Show comment Hide comment
@JonShepChen

JonShepChen Jul 6, 2015

Awesome, thanks

Awesome, thanks

@wynnej1983

This comment has been minimized.

Show comment Hide comment
@wynnej1983

wynnej1983 Aug 28, 2015

thanks!

thanks!

@rodlps22

This comment has been minimized.

Show comment Hide comment
@rodlps22

rodlps22 Oct 5, 2015

Thanks man!!! \o/

rodlps22 commented Oct 5, 2015

Thanks man!!! \o/

@tangyanlin

This comment has been minimized.

Show comment Hide comment
@tangyanlin

tangyanlin Oct 19, 2015

Thanks :)

Thanks :)

@jackiilong

This comment has been minimized.

Show comment Hide comment
@jackiilong

jackiilong Oct 24, 2015

Thanks!

Thanks!

@sumardi

This comment has been minimized.

Show comment Hide comment
@sumardi

sumardi Nov 17, 2015

Awesome. Thanks!

sumardi commented Nov 17, 2015

Awesome. Thanks!

@rporrasluc

This comment has been minimized.

Show comment Hide comment
@rporrasluc

rporrasluc Dec 3, 2015

This was useful, thanks!

This was useful, thanks!

@hbweb

This comment has been minimized.

Show comment Hide comment
@hbweb

hbweb Dec 17, 2015

Great stuff - appreciated this command

hbweb commented Dec 17, 2015

Great stuff - appreciated this command

@BigPa

This comment has been minimized.

Show comment Hide comment
@BigPa

BigPa Jan 1, 2016

It helps! 👍

BigPa commented Jan 1, 2016

It helps! 👍

@yuqiandoudou

This comment has been minimized.

Show comment Hide comment
@yuqiandoudou

yuqiandoudou Jan 15, 2016

谢谢了

谢谢了

@tonatiuh

This comment has been minimized.

Show comment Hide comment
@tonatiuh

tonatiuh Feb 20, 2016

Thanks!

Thanks!

@gccpacman

This comment has been minimized.

Show comment Hide comment
@gccpacman

gccpacman Mar 18, 2016

Works for me, thanks.

Works for me, thanks.

@ahcometrue

This comment has been minimized.

Show comment Hide comment
@ahcometrue

ahcometrue Mar 25, 2016

Thanks!

Thanks!

@louis-she

This comment has been minimized.

Show comment Hide comment
@louis-she

louis-she Apr 6, 2016

Thanks!

Thanks!

@ss998

This comment has been minimized.

Show comment Hide comment
@ss998

ss998 Apr 8, 2016

That's right, thanks!

ss998 commented Apr 8, 2016

That's right, thanks!

@hvenables

This comment has been minimized.

Show comment Hide comment
@hvenables

hvenables Apr 11, 2016

Thanks

Thanks

@DmitryDD

This comment has been minimized.

Show comment Hide comment
@DmitryDD

DmitryDD Apr 12, 2016

thx!

thx!

@David-99

This comment has been minimized.

Show comment Hide comment
@David-99

David-99 Apr 18, 2016

Thank you!

Thank you!

@minkikim89

This comment has been minimized.

Show comment Hide comment
@minkikim89

minkikim89 May 1, 2016

Thank you!

Thank you!

@tarlig

This comment has been minimized.

Show comment Hide comment
@tarlig

tarlig May 1, 2016

Perfect! Thanks!

tarlig commented May 1, 2016

Perfect! Thanks!

@vswamy

This comment has been minimized.

Show comment Hide comment
@vswamy

vswamy May 31, 2016

Awesome..

vswamy commented May 31, 2016

Awesome..

@calam1

This comment has been minimized.

Show comment Hide comment
@calam1

calam1 Sep 13, 2016

Thanks!

calam1 commented Sep 13, 2016

Thanks!

@mingrammer

This comment has been minimized.

Show comment Hide comment
@mingrammer

mingrammer Sep 13, 2016

Thanks!

Thanks!

@johnjhpark

This comment has been minimized.

Show comment Hide comment
@johnjhpark

johnjhpark Sep 14, 2016

Great help! thanks!

Great help! thanks!

@M-Kepler

This comment has been minimized.

Show comment Hide comment
@M-Kepler

M-Kepler Oct 6, 2016

It works ,thank you

M-Kepler commented Oct 6, 2016

It works ,thank you

@surahmans

This comment has been minimized.

Show comment Hide comment
@surahmans

surahmans Oct 27, 2016

Thank you! 👍

Thank you! 👍

@bernstein7

This comment has been minimized.

Show comment Hide comment
@bernstein7

bernstein7 Nov 12, 2016

Awesome 👍

Awesome 👍

@chinmayv

This comment has been minimized.

Show comment Hide comment
@chinmayv

chinmayv Nov 23, 2016

Thanks!

Thanks!

@sub-maxims

This comment has been minimized.

Show comment Hide comment
@sub-maxims

sub-maxims Nov 23, 2016

Thanks man! 👍

Thanks man! 👍

@lukalopusina

This comment has been minimized.

Show comment Hide comment
@lukalopusina

lukalopusina Dec 1, 2016

Thanks!

Thanks!

@fonlang

This comment has been minimized.

Show comment Hide comment
@fonlang

fonlang Dec 29, 2016

no working in Vim.

fonlang commented Dec 29, 2016

no working in Vim.

@shuizhongyueming

This comment has been minimized.

Show comment Hide comment
@shuizhongyueming

shuizhongyueming Jan 2, 2017

Thanks

Thanks

@amritendu-mondal

This comment has been minimized.

Show comment Hide comment
@amritendu-mondal

amritendu-mondal Feb 5, 2017

Thanks a lot. Also we need to add '-e' option to load tag table in emacs.

Thanks a lot. Also we need to add '-e' option to load tag table in emacs.

@luyangco

This comment has been minimized.

Show comment Hide comment
@luyangco

luyangco Feb 10, 2017

Much appreciated, thank you.

Much appreciated, thank you.

@yongbol

This comment has been minimized.

Show comment Hide comment
@yongbol

yongbol Feb 24, 2017

Thanks, so helpful

yongbol commented Feb 24, 2017

Thanks, so helpful

@alexismansilla

This comment has been minimized.

Show comment Hide comment
@alexismansilla

alexismansilla Mar 8, 2017

Thanks.

Thanks.

@josfaber

This comment has been minimized.

Show comment Hide comment
@josfaber

josfaber Mar 23, 2017

Top. Thanks!

Top. Thanks!

@commandocamel

This comment has been minimized.

Show comment Hide comment
@commandocamel

commandocamel Apr 9, 2017

🥇

🥇

@livingstonese

This comment has been minimized.

Show comment Hide comment
@livingstonese

livingstonese Jun 26, 2017

Thanks

Thanks

@codercotton

This comment has been minimized.

Show comment Hide comment
@codercotton

codercotton Jun 28, 2017

Still helping 6 years later, thanks!

Still helping 6 years later, thanks!

@34code

This comment has been minimized.

Show comment Hide comment
@34code

34code Jul 14, 2017

thanks!

34code commented Jul 14, 2017

thanks!

@westonplatter

This comment has been minimized.

Show comment Hide comment
@westonplatter

westonplatter Aug 31, 2017

Thank you

Thank you

@dkeesey

This comment has been minimized.

Show comment Hide comment
@dkeesey

dkeesey Oct 17, 2017

Thank you!

dkeesey commented Oct 17, 2017

Thank you!

@jason316

This comment has been minimized.

Show comment Hide comment
@jason316

jason316 Nov 5, 2017

how to puts tags file into .gitignore? suppose I have create a global .gitignore file in my repository, and follow the instruction above already. I am new to command line scripting and I did google it but was unable to find an answer.

jason316 commented Nov 5, 2017

how to puts tags file into .gitignore? suppose I have create a global .gitignore file in my repository, and follow the instruction above already. I am new to command line scripting and I did google it but was unable to find an answer.

@luoxugeng

This comment has been minimized.

Show comment Hide comment
@luoxugeng

luoxugeng Dec 7, 2017

3Q

3Q

@EdmundsEcho

This comment has been minimized.

Show comment Hide comment
@EdmundsEcho

EdmundsEcho Dec 18, 2017

Thank you.

Thank you.

@Lazare-42

This comment has been minimized.

Show comment Hide comment
@Lazare-42

Lazare-42 Jan 2, 2018

Thank you :)

Thank you :)

@mpise

This comment has been minimized.

Show comment Hide comment
@mpise

mpise Jan 16, 2018

Thank you.

mpise commented Jan 16, 2018

Thank you.

@acarist

This comment has been minimized.

Show comment Hide comment
@acarist

acarist Feb 1, 2018

thank you. (i'm gonna put alias to bashrc or zshrc)

acarist commented Feb 1, 2018

thank you. (i'm gonna put alias to bashrc or zshrc)

@zehn

This comment has been minimized.

Show comment Hide comment
@zehn

zehn Feb 9, 2018

thank you

zehn commented Feb 9, 2018

thank you

@sjsupersumit

This comment has been minimized.

Show comment Hide comment
@sjsupersumit

sjsupersumit Feb 13, 2018

Thanks. This helped.

Thanks. This helped.

@timbuckley

This comment has been minimized.

Show comment Hide comment
@timbuckley

timbuckley Feb 18, 2018

Thank you!

Thank you!

@movefast

This comment has been minimized.

Show comment Hide comment
@movefast

movefast Feb 18, 2018

Thank you!

Thank you!

@sharik709

This comment has been minimized.

Show comment Hide comment
@sharik709

sharik709 Feb 21, 2018

Thanks

Thanks

@joelturnbull

This comment has been minimized.

Show comment Hide comment
@joelturnbull

joelturnbull May 18, 2018

Love you <3

Love you <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment