首先看下效果图:
首先是安装oh-my-zsh,然后是安装zsh-autosuggestion,最后可以配置下zsh的主题
1:安装on-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
2:安装zsh-autosuggestion
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
编辑~/.zshrc配置文件:
找到plugins=(git)这一行,添加如下:
plugins=(git zsh-autosuggestions)
3:配置zsh主题
主题修改参考:https://github.com/robbyrussell/oh-my-zsh/wiki/themes
编辑~/.zshrc配置文件,修改theme即可,比如我的:
文章的脚注信息由WordPress的wp-posturl插件自动生成