diff --git a/README.md b/README.md index a6ba48b..1f0c4ce 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ It will output something like: ####TODO +**It's done now, ctag will be install on different platforms** + In mac, should replace the [`Exuberant CTags`](http://www.scholarslab.org/research-and-development/code-spelunking-with-ctags-and-vim/) brew install ctags diff --git a/setup.sh b/setup.sh index bf9d292..02a77e7 100644 --- a/setup.sh +++ b/setup.sh @@ -24,3 +24,11 @@ exe_cmd "ln -sf $root_dir/files/_vimrc $vim_rc" exe_cmd 'git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim' exe_cmd 'vim +PluginInstall +qall' + +if type "brew" > /dev/null 2>&1; then + exe_cmd "brew install ctags" +elif type "yum" > /dev/null 2>&1; then + exe_cmd "sudo yum install -y ctags" +elif type "apt-get" > /dev/null 2>&1; then + exe_cmd "sudo apt-get install exuberant-ctags" +fi