Skip to content

oh_my_zsh配置

安装zsh

apt install zsh -y

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

powerline

pip install powerline-status --user

安装PowerFonts

git clone https://github.com/powerline/fonts.git --depth=1


cd fonts

./install.sh

主题

git clone https://github.com/fcamblor/oh-my-zsh-agnoster-fcamblor.git

cd oh-my-zsh-agnoster-fcamblor/

./install

vim ~/.zshrc
ZSH_THEME="agnoster"

source ~/.zshrc

安装高亮插件

cd ~/.oh-my-zsh/custom/plugins/

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git

vim ~/.zshrc
plugins=(
        git
        zsh-syntax-highlighting
)
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

zsh-syntax-highlighting必须在最后一个

可选择、命令补全

cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-autosuggestions
vim ~/.zshrc
plugins=(
        git
        zsh-autosuggestions
        zsh-syntax-highlighting
)