更新于
Zsh Setup Guide
Zsh is powerful and highly customizable. With a few plugins (e.g. Oh My Zsh), you can get a smooth dev experience. This guide covers install, Oh My Zsh, and a dev-oriented config.
Install
- macOS: Zsh is default; update with
brew install zshif needed. - Ubuntu/Debian:
sudo apt update && sudo apt install zsh
Set as default: chsh -s $(which zsh).
Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Then enable plugins and themes in ~/.zshrc. For full plugin list, Python/Node/Go/Rust integration, and troubleshooting, see the Chinese version of this article.