安装zsh
sudo pacman -S zsh
查看zsh是否安装成功
cat /etc/shells
将zsh设置为默认
chsh -s /bin/zsh
重启即可
一
安装oh my zsh
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
复制.zshrc
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
三
配置
nano .zshrc
我的配置
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="duellj"
plugins=(
git
z
zsh-syntax-highlighting # 高亮
zsh-autosuggestions # 自动补全
fzf
zsh-completions
alias-finder
)
source $ZSH/oh-my-zsh.sh