安装zsh
pacman -S zsh
chsh -s /usr/bin/zsh
git clone https://github.com/robbyrussell/oh-my-zsh.git
mv oh-my-zsh .oh-my-zsh
cp .oh-my-zsh/template/zshrc.zsh-template ~/.zshrc
重新登入
2. 安装powerline-fonts
git clone https://github.com/Lokaltog/powerline-fonts.git
mkdir ~/.fonts
mv powerline-fonts ~/.fonts
3.安装一个termial emulator
发现lilyterm对于powerline的支持不错,没有urxvt头痛的字符宽度问题,而且速度比gnome-terminal快。
pacman -S lilyterm
vi ~/.config/lilyterm/default.conf
将字体修改为Source Code Pro
并将encoding修改为utf-8
echo "export LANG=zh_CN.UTF-8" >> ~/.zshrc
source ~/.zshrc
修改 ~/.zshrc中theme为agnoster
重启lilyterm
4.安装vim
先去vim网站下个源码包
tar jxvf vimxx.tar.bz2
./configure --enablepythoninter=yes --enablepython3inter=yes
make && make install
cd /bin
rm -rf vi
ln -s /path/to/vim vi
git clone https://github.com/wklken/k-vim.git
cd k-vim
chmod +x install.sh && ./install.sh