Mac下安装shell神器 oh-my-zsh

oh-my-zsh是Mac下一个强大炫酷装逼的一个终端神器,安装方法如下:
1.终端下输入命令安装

curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh 

2.备份配置文件

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

3.设置zsh为默认shell

chsh -s /bin/zsh

4.到这里已经安装完成,重新打开shell即可,oh-my-zsh有很多主题,比如agnoster主题,设置方法如下:
终端输入vim ~/.zshrc修改配置.
修改配置
然后source ~/.zshrc更新配置。
5.使用该主题可能会造成乱码,解决方法如下:依次在终端输入下面三条命令

git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh

6.终端工具推荐使用iTerm2,百度安装即可,需要修改一下配置:
Perferences -> Profiles -> Default -> Text -> ChangeFont
配置
7.重新打开终端,就可以使用oh-my-zsh了,而且逼格超级高。
wtg

猜你喜欢

转载自blog.csdn.net/qq_41689620/article/details/84953535
今日推荐