https://github.com/robbyrussell/oh-my-zsh
Zsh should be installed (v4.3.9 or more recent). If not pre-installed (zsh –version to confirm), check the following instruction here: Installing ZSH
sudo apt-get install zsh
curl方式
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
wget方式
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
摘录自https://github.com/robbyrussell/oh-my-zsh
Manual Installation
1. Clone the repository:
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
2. Optionally, backup your existing ~/.zshrc file:
cp ~/.zshrc ~/.zshrc.orig
3. Create a new zsh configuration file
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
4. Change your default shell
chsh -s /bin/zsh
5. Initialize your new zsh configuration
Once you open up a new terminal window, it should load zsh with Oh My Zsh's configuration.
sudo apt-get install powerline
# clone
git clone https://github.com/powerline/fonts.git
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
cd ~/.local/share/fonts目录下
选择一个自己喜欢的字体,在window下安装即可
## 安利下DejaVu字体,程序员最爱。
DejaVu Sans Mono Bold for Powerline.ttf
DejaVu Sans Mono Bold Oblique for Powerline.ttf
DejaVu Sans Mono for Powerline.ttf
DejaVu Sans Mono Oblique for Powerline.ttf
大家这可以直接来这里下载DejaVu for Powerline.zip