安装 Oh My ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
配置语法高亮
配置自动补全
切换Shell
chsh -s zsh
➜ qinpeifa cd ~/.oh-my-zsh/lib ➜ lib git:(master) sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git Cloning into 'zsh-syntax-highlighting'... remote: Enumerating objects: 8, done. remote: Counting objects: 100% (8/8), done. remote: Compressing objects: 100% (7/7), done. remote: Total 6574 (delta 1), reused 4 (delta 1), pack-reused 6566 Receiving objects: 100% (6574/6574), 1.36 MiB | 14.00 KiB/s, done. Resolving deltas: 100% (4433/4433), done. ➜ lib git:(master) ✗ sudo git clone https://github.com/zsh-users/zsh-autosuggestions.git Cloning into 'zsh-autosuggestions'... remote: Enumerating objects: 2385, done. remote: Total 2385 (delta 0), reused 0 (delta 0), pack-reused 2385 Receiving objects: 100% (2385/2385), 541.32 KiB | 68.00 KiB/s, done. Resolving deltas: 100% (1531/1531), done. ➜ lib git:(master) ✗ echo 'source ~/.oh-my-zsh/lib/zsh-autosuggestions/zsh-autosuggestions.zsh \n source ~/.oh-my-zsh/lib/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh'>> ~/.zshrc