Linux 配置oh_my_zsh+powerline

Linux 配置oh_my_zsh+powerline

文章目录

  • Linux 配置oh_my_zsh+powerline
    • Step 1 : 安装pip git wget curl
    • Step 2 : 安装oh_my_zsh
    • Step 3 : 安装powerline fonts
    • Step 4 : 使用`fontconfig`配置Powerline 字体
    • Step 5 : 更改zsh主题
    • Step 6 : reboot

Step 1 : 安装pip git wget curl

sudo apt-get install git python-pip wget curl

Step 2 : 安装oh_my_zsh


$ sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

Step 3 : 安装powerline fonts

git clone https://github.com/powerline/fonts.git
sudo ./fonts/install.sh

Step 4 : 使用fontconfig配置Powerline 字体

wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf
mv PowerlineSymbols.otf ~/.local/share/fonts/
sudo fc-cache -f -v
wget https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf mkdir -p ~/.config/fontconfig/fonts.conf mv 10-powerline-symbols.conf ~/.config/fontconfig/fonts.conf/

Step 5 : 更改zsh主题

sudo gedit ~/.zshrc

将zsh主题改为agnoster

Step 6 : reboot

reboot

你可能感兴趣的:(Shell)