Aug 24, 2012 -
mac, node.js
No Comments


Install Node.js and npm on Mountain Lion
装好Mountain Lion后还一直没有碰过node.js,今天觉得不在拖拉,立刻把node.js的环境装回来!
node.js非常好安装
$ brew install node
第二步安装npm,遇到不少的麻烦…
Read more »
装好Mountain Lion后还一直没有碰过node.js,今天觉得不在拖拉,立刻把node.js的环境装回来!
node.js非常好安装
$ brew install node
第二步安装npm,遇到不少的麻烦…
Read more »
这两天vim里需要用到taglist,于是开始装ctags,用homebrew安装很简单
$ brew install ctags
$ ctags -R ctags: illegal option -- R usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
其实这个问题在Lion下就有了,尤其在vim下,hjkl按住不放都没有原先的连续动作了。不过上下左右倒是好的。
解决方法:
$ defaults write -g ApplePressAndHoldEnabled -bool false
重启vim,一起ok!!
每次调试自己的页面都要输入
http://localhost/~ares/……
实在太麻烦了,可不可以只输入 http://ares/…… 呢?
可以,你需要配置自己的虚拟主机
1. 在终端运行:
$ sudo vim /etc/apache2/httpd.conf
在httpd.conf中找到“#Include /private/etc/apache2/extra/httpd-vhosts.conf”,去掉前面的“#”,保存并退出。
Read more »
Homebrew装好后,就可以通过Homebrew来安装传说中这个世界上最强大的shell:zsh了
直接:
brew install zsh