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
------------------------------------------------------------------------