安装
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"# 开启自带跳转功能vim ~/.zshrcplugins=(git z)source ~/.bashrc# 生效source ~/.zshrc
- 国内地区修改update地址
cd ~/.oh-my-zshgit remote set-url origin https://gitee.com/mirrors/oh-my-zsh.gitgit pull
卸载
uninstall_oh_my_zsh
插件
- 自动补全插件
```bash
自动补全
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions高亮
git clone git://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
添加
plugins=(git z zsh-autosuggestions zsh-syntax-highlighting)
如果粘贴比较慢,则添加配置```bash# This speeds up pasting w/ autosuggest# https://github.com/zsh-users/zsh-autosuggestions/issues/238pasteinit() {OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]}zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?}pastefinish() {zle -N self-insert $OLD_SELF_INSERT}zstyle :bracketed-paste-magic paste-init pasteinitzstyle :bracketed-paste-magic paste-finish pastefinish
