powerline 美化,命令行美化.

废话不多说直接开干

首先 powerline 一般是一个 python脚本。
so
在你想要使用的地方加上这个python脚本即可 比如 首先安装这个脚本
sudo pip3 install powerline-status

再 .bashrc 里面最下面的哪一行填写
/usr/local/lib/python3.5/dist-packages/powerline/bindings/bash/powerline.sh
在 .vimrc 中加上
set rtp+=/usr/lib/python3.5/dist-packages/powerline/bindings/vim

大功告成。

看到同事在用一个很好的终端

首先这个终端为什么个人觉得很好呢??

1.有些目录的长度很长,加上这个只显示三个.感觉很漂亮而且也很实用.

小箭头感觉很炫.
一直没找到是什么主题.一直搜索的式命令行美化.后来看到powerline.才出现结果.
话不多说上图:
647470-20171116132455624-1180475387.png

感觉怎么样子,还行把.

英文资料
字体错误
就是显示出 这个时候可以参考这个帖子
git clone https://github.com/powerline/fonts
./install.sh
647470-20171116132740671-1865173953.png
字体问题详细参考 觉得下面的不靠谱.
还是主要参考英文资料把因为.基本上都可以找到答案.
https://gist.github.com/renshuki/3cf3de6e7f00fa7e744a
After downloading font the following should be done:

Move the patched font to a valid X font path. Valid font paths can be listed with xset q:

mv 'SomeFont for Powerline.otf' ~/.fonts/
Update font cache for the path the font was moved to (root priveleges may be needed for updating font cache for some paths):

fc-cache -vf ~/.fonts/
~/.fonts 地址好像不太对
fonts 下过来的readme 里面的应该是对的.大家下载fonts的时候可以看一下readme.

In some distributions, Terminess Powerline is ignored by default and must be 
explicitly allowed. A fontconfig file is provided which enables it. Copy this 
file from the fontconfig directory to your home folder under 
``~/.config/fontconfig/conf.d`` (create it if it doesn't exist) and re-run 
``fc-cache -vf``.                

参考:
http://www.darcysong.com/2015/09/12/powerline/index.html
https://www.tuicool.com/articles/zqUnIby

转载于:https://www.cnblogs.com/eat-too-much/p/7843957.html

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值