设为首页 加入收藏

TOP

macOS 安装 ctags
2017-10-11 14:55:36 】 浏览:8041
Tags: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 *
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇在Mac 系统上安装密码生成器 下一篇mac系统 下 npm 安装 bower报错

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目