Posted onEdited onInlinuxViews: Word count in article: 2.2kReading time ≈2 mins.
install zsh on linux
安装zsh
root下操作
安装zsh
1
yum -y install zsh
切换bash至zsh
1 2
chsh -s $(which zsh) $(whoami) reboot
install oh-my-zsh
1 2 3 4 5 6 7 8
# if wget sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" # if curl sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # if your network is not fine, you can use the proxy sh -c "$(curl -fsSLx http://www-proxy.example.com:8080 https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
config
1 2 3 4 5 6 7 8 9 10 11 12 13 14
vim ~/.zshrc plugins=(git z sudo history ripgrep fd fzf tmux zsh-autosuggestions zsh-syntax-highlighting) ZSH_THEME="powerlevel10k/powerlevel10k" # you can run the command 'p10k configure' to reconfigure your powerlevel10k