How to Use Homebrew Zsh Instead of Mac OS X Default

本文转载至:http://zanshin.net/2013/09/03/how-to-use-homebrew-zsh-instead-of-max-os-x-default/

Out of the box Mac OS X version 10.8.x (Lion) comes with zsh version 4.3.11 (i386-apple-darwin12.0). However zsh is currently at version 5.0.2 (x86_64-apple-darwin12.2.1). Here's how to use the newer version.

Install zsh using Homebrew.

$ brew install zsh

Edit /etc/shells to add a new entry for the Homebrew zsh.

$ brew install zsh
$ sudo vim /etc/shells

The resulting /etc/shells file should look like this:

$ cat /etc/shells
/bin/bash
/bin/csh
/bin/sh
/bin/tcsh
/bin/zsh
/usr/local/bin/zsh

The /usr/local/bin/zsh location is the symlink Homebrew creates when installing zsh.

To actually change the shell assigned to your user account run

$ chsh -s /usr/local/bin/zsh

Now you have the most recent zsh as your shell.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值