How to Use Homebrew Zsh Instead of Mac OS X Default

深碍√TFBOYSˉ_ 2022-07-10 04:59 646阅读 0赞

本文转载至: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.

  1. $ brew install zsh

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

  1. $ brew install zsh
  2. $ sudo vim /etc/shells

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

  1. $ cat /etc/shells
  2. /bin/bash
  3. /bin/csh
  4. /bin/sh
  5. /bin/tcsh
  6. /bin/zsh
  7. /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

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

Now you have the most recent zsh as your shell.

发表评论

表情:
评论列表 (有 0 条评论,646人围观)

还没有评论,来说两句吧...

相关阅读

    相关 how to use kvm

    kvm 是qemu 集成了一些針對開啟了VT技術的cpu而開發的不錯的內核級程式. 下面是一些簡要的說明:- <table style="border:1px solid