赞
踩
1.1 查看 Mac 上已有的 shell
➜ ~ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
1.2 查看mac默认的shell
➜ ~ echo $SHELL
/bin/zsh
1.3 将默认 shell 改成 zsh
➜ ~ chsh -s /bin/zsh
2.1 安装oh-my-zsh
https://github.com/ohmyzsh/ohmyzsh/
// git clone
➜ ~ git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
// curl安装
➜ ~ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
// wget安装
➜ ~ sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
2.2 安装插件zsh-syntax-highlighting
➜ ~ git clone https
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。