第二十一章-Powerline
基本就是美化终端的作用吧,有可能拖慢打开终端速度
sudo apt-get install python-pip
sudo pip install git+git://github.com/Lokaltog/powerline
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mv PowerlineSymbols.otf /usr/share/fonts/
fc-cache -vf /usr/share/fonts/
mv 10-powerline-symbols.conf /etc/fonts/conf.d/
找 powerline位置:
pip show powerline-status
bash的配置:
nano ~/.bashrc
添加:
export TERM=xterm-256color
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh
mkdir ~/.config/powerline
cp /usr/local/lib/python2.7/dist-packages/powerline/config_files/config.json ~/.config/powerline/config.json
nano ~/.config/powerline/config.json
定位到:
"shell": {
...
"theme": "default",
改为:
"theme": "default_leftonly",
vim的配置:
sudo apt-get install vim-nox
nano ~/.vimrc
添加:
set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
set laststatus=2
set t_Co=256
tmux的配置:
sudo apt-get install tmux
nano ~/.tmux.conf
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "xterm-256color"