在opensuse13.2上安装powerline来使bash变得漂亮

在opensuse13.2上安装powerline来使bash变得漂亮

第一步:

sudo pip install powerline-status

第二步:

sudo pip install --user git+git://github.com/powerline/powerline

第四步,下载symbol font 和 fontconfig file:

wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf

第五步,移动symbol file 到 X font path:

mv PowerlineSymbols.otf ~/.fonts/

第六步:

fc-cache -vf ~/.fonts/

第七步:

mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

若~/.config/fontconfig/conf.d/不存在,则创建它。

第八步,在~/.bashrc里加入以下语句:

. /usr/lib/python3.4/site-packages/powerline/bindings/bash/powerline.sh

然后启动一个新的konsole,如果symbol还是不显示,就重启一下X。

如果需要进一步详细设置powerline,请看官方文档:http://powerline.readthedocs.org/en/latest/index.html

posted @ 2015-06-02 10:21  RayNet  阅读(446)  评论(0编辑  收藏  举报