macOS 安装 ctags
macOS 安装 ctags
macOS 自带一个 ctags,但是不支持 -R 参数,递归产生tags文件
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
使用 Homebrew 安装 ctags:
brew install ctags
替换默认 ctags
$ echo 'alias ctags="`brew --prefix`/bin/ctags"' >> $HOME/.zshrc
$ exec $SHELL
bash 用户加入 $HOME/.bashrc,测试:
$ ctags -R --exclude=.git --exclude=log *
posted on 2017-04-08 15:55 wangchuande 阅读(1132) 评论(0) 收藏 举报
浙公网安备 33010602011771号