安装Homebrew :
在终端上输入:
$ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Homebrew 从终端安装你需要的应用:
安装wget:
$ brew install wget
Homebrew 安装在自己的目录安装包,然后用符号链接到目录 /usr/local
例如:
$cd /usr/local
$ find Cellar
Cellar/wget
Cellar/wget/1.15
Cellar/wget/1.15/AUTHORS
Cellar/wget/1.15/bin
Cellar/wget/1.15/bin/wget
$ ls -l bin
wget -> ../Cellar/wget/1.15/bin/wget
安装vim:
在终端上输入:
$ brew install vim --with-python --with-ruby --with-perl
如果vim没有语法颜色,你需要设置 .vimrc 文件:
$ vim ~/.vimrc
添加下列:
filetype plugin indent on
syntax on
如果已经有了如上两行,你需要在“syntax on”之前添加
set term=builtin_beos-ansi
其他的(“Mountain Lion”)使用下面:
set term=builtin_ansi