您的位置: Zeddicus Blog Mac相关

升级到 Lion 之后 Homebrew 失效的解决方法

直接升级到 Lion 没怎么注意,后来发现之前装的 wget 没了。执行 brew install wget 发现总是提示要先 brew install git。Google 了一下发现原来 Snow Leopard 升级到 Lion 之后  Homebrew 会失效。同时也找到了解决方法,因此在这里备注一下。以下步骤:

1.登录到App Store,然后下载 xcode 4

2.在 Application 里面执行 Install Xcode

3.然后就可以了

需要注意的是网上的 4.0.2 不能用于 Lion,流传的 4.1 是 DP 版,因此在 App Store 上下载最好(尽管速度慢了一些)。黑苹果用户要 App Store 帐号的话去Google一下流传已久的教程即可免信用卡申请到。

哦对了,当然是要brew install wget一下

Lion的两个蛋疼之处

升级Lion有一段时间了,对于黑苹果用户来说,Lion要比Leopard更优秀,因为之前10.6.8的时候我有零星的五国的情况,但是升级到Lion之后就不会了,系统运行感觉更加平稳与可靠。

不过呢,还是有两个地方让我感到有点蛋疼的。第一个就是鼠标滚轮,升级后发现好不习惯,因为当我往上推的时候网页内容会往下走,反之亦然。第二个就是单词拼写修正,在写代码的时候给他自动纠正真是一个灾难。

1.解决鼠标滚轮的问题

System Preferences -> Mouse -> 把 Move content in the direction of finger movement when scrolling or navigating 前面的勾勾去掉

2.取消单词拼写纠正

System Preferences -> Language & Text -> Text -> 把 Correct spelling automatically 前面的勾勾去掉

完事……

更改Leopard截图的保存位置和图片格式

不多说了,直达主题吧,更改Leopard截图的保存位置和图片格式,只需要两句命令:

首先是更改Leopard截图的保存位置:

  1. defaults write com.apple.screencapture location
defaults write com.apple.screencapture location

这里的location就是具体的位置,比方说我的 /Users/Zed/Desktop/ScreenShots 则就是

  1. mkdir /Users/Zed/Desktop/ScreenShots
  2. defaults write com.apple.screencapture location /Users/Zed/Desktop/ScreenShots
mkdir /Users/Zed/Desktop/ScreenShots
defaults write com.apple.screencapture location /Users/Zed/Desktop/ScreenShots

而更改Leopard截图的默认格式则是:

  1. defaults write com.apple.screencapture type
defaults write com.apple.screencapture type

只支持 png gif jpg 和 pdf,比方说我改成默认是jpg的话就是:

  1. defaults write com.apple.screencapture type jpg
defaults write com.apple.screencapture type jpg

当然这一切的一切,都要在console里面进行~