Update ctags with brew
Update ctags with brew
The “ctags” coming with Mac OS is really a very old one (1993). We can update it with brew, and I think this Article is very useful.
The point is:
- Install latest ctags with brew: brew install ctags. This should be OK
- Replace “ctags” with:
- alias ctags=”
brew --prefix
/bin/ctags” - alias ctags » ~/.bash_profile
- Please note that the original post uses ~/.bashrc but it won’t work in Mac OS. So use ~/.bash_profile instead
- alias ctags=”
brew --prefix
will display the install path of brew, and append it with /bin/ctags will get the new ctags pathname. Please note that “`” is the character with the key “~” on your keyboard.