- 对于mac,就需要通过命令行来安装gnu-sed,具体安装过程如下
2.brew install gnu-sed --with-default-names
3.vi ~/.zshrc打开这个环境变量设置添加下面那一行
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
export MANPATH="/usr/local/opt/gnu-sed/libexec/gnuman:$MANPATH"
PS:此次的gnu-sed名称可以换成你对应的环境的要安装的命令
4.source ~/.zshrc 或者新开窗口,让设置生效
网友评论