install oh-my-zsh and powerlevel10k in my terminal

first install oh-my-zsh in github

1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

if live in china mainland,useing proxy to download it.

1
2
export https_proxy=127.0.0.1:1081
export http_proxy=127.0.0.1:1081

then download successful

secend editing .zshrc

Clone this repository in oh-my-zsh’s plugins directory:

1
2
3
4
5
zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

add plugin in .zshrc

1
2
3
4
5
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)

install powerlevel10k

git clone

1
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc .
finished install p10k and run in zsh p10k configure