当前位置: 首页 > news >正文

中国建设论坛网站大全/长沙网站seo

中国建设论坛网站大全,长沙网站seo,阿里云装wordpress,素材免费网站写在前面 公司换过好几次电脑,每次配置 iTerm2 都要查教程配置,自己记录下以备不时之需。 环境 Mac OS 11.1.0 ITerm2 3.4.3 安装 ITerm2 官网下载安装就可以了,不赘述了. 安装 rz sz # 需要先安装 homebrew brew install lrzsz配置 r…

写在前面

公司换过好几次电脑,每次配置 iTerm2 都要查教程配置,自己记录下以备不时之需。

环境

Mac OS 11.1.0
ITerm2 3.4.3

安装 ITerm2

官网下载安装就可以了,不赘述了.

安装 rz sz

# 需要先安装 homebrew
brew install lrzsz

配置 rz sz

vim iterm2-recv-zmodem.sh

输入以下内容

#!/bin/bash
# Author: Matt Mastracci (matthew@mastracci.com)
# AppleScript from http://stackoverflow.com/questions/4309087/cancel-button-on-osascript-in-a-bash-script
# licensed under cc-wiki with attribution required
# Remainder of script public domainosascript -e 'tell application "iTerm2" to version' > /dev/null 2>&1 && NAME=iTerm2 || NAME=iTerm
if [[ $NAME = "iTerm" ]]; thenFILE=`osascript -e 'tell application "iTerm" to activate' -e 'tell application "iTerm" to set thefile to choose folder with prompt "Choose a folder to place received files in"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")"`
elseFILE=`osascript -e 'tell application "iTerm2" to activate' -e 'tell application "iTerm2" to set thefile to choose folder with prompt "Choose a folder to place received files in"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")"`
fiif [[ $FILE = "" ]]; thenecho Cancelled.# Send ZModem cancelecho -e \\x18\\x18\\x18\\x18\\x18sleep 1echoecho \# Cancelled transfer
elsecd "$FILE"/usr/local/bin/rz -E -e -bsleep 1echoechoecho \# Sent \-\> $FILE
fi

保存退出,配置 send

vim iterm2-send-zmodem.sh

输入以下内容

#!/bin/bash
# Author: Matt Mastracci (matthew@mastracci.com)
# AppleScript from http://stackoverflow.com/questions/4309087/cancel-button-on-osascript-in-a-bash-script
# licensed under cc-wiki with attribution required
# Remainder of script public domainosascript -e 'tell application "iTerm2" to version' > /dev/null 2>&1 && NAME=iTerm2 || NAME=iTerm
if [[ $NAME = "iTerm" ]]; thenFILE=`osascript -e 'tell application "iTerm" to activate' -e 'tell application "iTerm" to set thefile to choose file with prompt "Choose a file to send"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")"`
elseFILE=`osascript -e 'tell application "iTerm2" to activate' -e 'tell application "iTerm2" to set thefile to choose file with prompt "Choose a file to send"' -e "do shell script (\"echo \"&(quoted form of POSIX path of thefile as Unicode text)&\"\")"`
fi
if [[ $FILE = "" ]]; thenecho Cancelled.# Send ZModem cancelecho -e \\x18\\x18\\x18\\x18\\x18sleep 1echoecho \# Cancelled transfer
else/usr/local/bin/sz "$FILE" -e -bsleep 1echoecho \# Received $FILE
fi

保存退出,并修改权限

chmof +x iterm2-*

iTerm2 配置添加rz sz 功能

点击 iTerm2 的设置界面 Perference-> Profiles -> Default -> Advanced -> Triggers 的 Edit 按钮
wp_editor_md_abbdcba2db83b2ca9c8c992996343566.jpg
添加两个 Triggers 内容如下:

Regular expression: rz waiting to receive.\*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.shRegular expression: \*\*B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-recv-zmodem.sh

添加完成后如下
wp_editor_md_813657102bbaf098568eb3b153fc1374.jpg
至此就完成了配置,可以在服务器上使用 rz sz 命令上传下载文件了。

备注:
服务器上也要安装 lrzsz

# centos 
yum install lrzsz
#ubuntu
apt-get install lrzsz
http://www.jmfq.cn/news/4866607.html

相关文章:

  • 网站建设供应商税点/军事新闻今日最新消息
  • 做图片的网站都有哪些/市场营销推广方案
  • 网站从建设到运行要多少钱/石家庄seo管理
  • 做墙绘一般在哪个网站/友情链接购买网站
  • 委托网站开发所有权归属/销售管理怎么带团队
  • 网站空间的管理站点/营销推广渠道
  • 产品做网站不花钱/2020最近的新闻大事10条
  • 网站的域名都有哪些/网站seo方案模板
  • 昆明婚恋网站价格/北京环球影城每日客流怎么看
  • php网站服务器怎么来/百度手机助手app下载安装
  • 学校建设网站的意义/潍坊网站建设seo
  • 国际学校网站建设/微信推广文案
  • 西安高端网站建设哪家好/优化大师兑换码
  • 网站公安备案公告/域名查询网址
  • 福田做棋牌网站建设哪家好/google搜索引擎下载
  • 手机版 网站建设/新冠咳嗽怎么办
  • 怎么做可以直播的网站吗/seo网站推广公司
  • 思想政治教育网站建设/微信推广广告在哪里做
  • 做牛仔的时尚网站/磁力bt种子搜索神器
  • 网站建设问题/芜湖seo
  • 网站怎么做图片转链/长沙企业网站建设报价
  • 莱芜做网站的商家有哪些/无锡网络推广平台
  • 可以做微信公众号封面的网站/网站在线客服系统 免费
  • 西安建网站/辽宁好的百度seo公司
  • 上海网站建设 建站猫/网页制作的步骤
  • 宝安公司网站建设/湖南网站建设加盟代理
  • 学校网站的建立/河北高端网站建设
  • 浙江建设厅网站官网/网络营销比较成功的企业
  • 网站免费网站入口/广州seo运营
  • wordpress多域名模板/优化关键词排名外包