Zsh

Admin留言 | 贡献2023年3月30日 (四) 05:44的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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.修改配置文件

vi ~/.zshrc

plugins=(git zsh-syntax-highlighting zsh-autosuggestions )

source ~/.zshrc

Git Bash 安装 zsh 和 on-my-zsh

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

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