首先说明,我重新安装了zsh一次
brew install zsh
首先先下载电力线字体
https://github.com/powerline/fonts.git
自己整一下,网好就在线clone。
否则下载下来安装,都一样
去官网下载安装一条龙~
这是嘴一开始安装好
Mac系统默认使用dash作为终端,可以使用命令修改默认使用zsh:
chsh -s /bin/zsh
如果想修改回默认dash,同样使用chsh命令即可:
chsh -s /bin/bash
安装方法有两种,可以使用curl或wget,看自己环境或喜好:
# curl 安装方式
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# wget 安装方式
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/insta
powerline官网:http://powerline.readthedocs....
安装powerline的方式依然简单,也只需要一条命令:
pip install powerline-status --user
安装字体库需要首先将项目git clone至本地,然后执行源码中的install.sh。
在你习惯的位置新建一个文件夹,如:~/Desktop/OpenSource/
在此文件夹下执行git clone命令:
# git clone
git clone https://github.com/powerline/fonts.git --depth=1
# cd to folder
cd fonts
# run install shell
./install.sh
选择字体
安装主题
注册进来
选择主题看看
我选择了smmoth
echo "⮀ ± ⭠ ➦ ✔ ✘ ⚡"测试用的字体