Zsh

Admin留言 | 贡献2025年9月26日 (五) 09:07的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

1.安装zsh 编辑

apt install zsh

2.安装oh my zsh 编辑

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

3.安装插件 编辑

# 终端提示
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
# 语法高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

4.修改配置文件 编辑

sed -i 's/^plugins=.*/plugins=(git zsh-syntax-highlighting zsh-autosuggestions)/' ~/.zshrc

source ~/.zshrc

Git Bash 安装 zsh 和 on-my-zsh 编辑

https://www.jianshu.com/p/01b90a05580f

https://dominikrys.com/posts/zsh-in-git-bash-on-windows/