zsh 最简化配置

1. 先安装zsh, on-my-zsh
sudo apt install zsh
$ sh -c "$(wget -O- https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"
2.设置主题:
vi ~/.zshrc
#### 修改主题
ZSH_THEME="bira"
------------------------------------
4. 安装 zsh-autosuggestions 插件
# clone 插件到 on-my-zsh 插件路径
git clone https://gitee.com/phpxxo/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# 修改 .zshrc 配置 插件
vi ~/.zshrc
---------------------------------------------------------------------
plugins=(git
        zsh-autosuggestions
        )

ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=yellow'
----------------------------------------------------------------------
source ~/.zshrc

5. 添加通配符设置

不添加时,使用 sudo apt purge ibus-* 会提示 zsh: no matches found:

vi ~/.zshrc
------------------------------------------------------------------------
setopt no_nomatch
------------------------------------------------------------------------

你可能感兴趣的:(zsh 最简化配置)