iTerm2
首先推荐安装iTerm2终端,可在官网 http://iterm2.com/ 免费下载安装。
安装oh-my-zsh
查看系统的shell
1 2 3 4 5 6 7 8 9 10 11
| 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/ksh /bin/sh /bin/tcsh /bin/zsh
|
bash是mac中terminal自带的shell,把它换成zsh,这个的功能要多得多。拥有语法高亮,命令行tab补全,自动提示符,显示Git仓库状态等功能。
安装oh-my-zsh
使用curl
安装oh-my-zsh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Cloning Oh My Zsh... Cloning into '/Users/simon/.oh-my-zsh'... remote: Enumerating objects: 1023, done. remote: Counting objects: 100% (1023/1023), done. remote: Compressing objects: 100% (940/940), done. remote: Total 1023 (delta 23), reused 848 (delta 20), pack-reused 0 Receiving objects: 100% (1023/1023), 681.01 KiB | 5.00 KiB/s, done. Resolving deltas: 100% (23/23), done. Looking for an existing zsh config... Using the Oh My Zsh template file and adding it to ~/.zshrc __ __ ____ / /_ ____ ___ __ __ ____ _____/ /_ / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ / /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / \____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ /____/ ....is now installed!
Please look over the ~/.zshrc file to select plugins, themes, and options.
p.s. Follow us at https://twitter.com/ohmyzsh.
p.p.s. Get stickers, shirts, and coffee mugs at https://shop.planetargon.com/collections/oh-my-zsh.
|
安装成功。
如何切换主题就不在这里详述了。