Zsh

来自MediaWiki
Admin留言 | 贡献2023年6月29日 (四) 03:03的版本
跳转到导航 跳转到搜索

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/