2018-04-04 from--https://blog.csdn.net/z924139546/article/details/79815788
arch应该也行
目录为/root下
非root请在命令前加上 sudo
- 1
- 2
- 3
- 4
- 5
- 6
安装zsh
pacman -S zsh
- 1
安装 oh-my-zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)
- 1
安装字体
pacman -S powerline
pacman -S powerline-fonts
- 1
- 2
vim .bashrc
#在最后增加
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/lib/python3.6/site-packages/powerline/bindings/bash/powerline.sh
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
vim .zshrc
#在最后增加
powerline-daemon -q
. /usr/lib/python3.6/site-packages/powerline/bindings/zsh/powerline.zsh
- 1
- 2
- 3
- 4
- 5
- 6
vim支持
pacman -S powerline-vim
- 1
配置
vim .vimrc
let g:powerline_pycmd="py3"
set laststatus=2
set t_Co=256
syntax on
- 1
- 2
- 3
- 4
- 5
- 6
效果
bye