执行语句:

brew install lrzsz

详细执行步骤

三、添加iTerm2 trigger

iTerm2 --> Profiles --> Open Profiles --> Edit Profiles --> Advanced --> Edit Trigger

配置项:

Regular expression            Action                     Parameters
\*\*B0100                    Run Silent Coprocess        /usr/local/bin/iterm2-send-zmodem.sh
\*\*B00000000000000           Run Silent Coprocess        /usr/local/bin/iterm2-recv-zmodem.sh

 

原始连接:https://blog.csdn.net/lizhixin705/article/details/80250921

如果出错尝试下面这个方法(某高手分享,下面有原始连接)

Running Homebrew as root is extremely dangerous and no longer supported

解决方法

sudo chown -R `whoami` /usr/local/Homebrew/
$ sudo chown -R $(whoami) $(brew --prefix)/*
$ sudo mkdir /usr/local/Frameworks
$ sudo chown -R `whoami` /usr/local/Frameworks/

原文链接:https://blog.csdn.net/meifannao789456/article/details/105083605

 

之后就可以了

 

sudo chmod  777 文件路径

 

切换 sudo

sudo su

sudo -i

posted on 2021-08-09 10:50  王洪洪  阅读(30)  评论(0编辑  收藏  举报