2019 December

Mac上安装iTerm2,并使用rz sz命令上传下载文件

在Mac上安装好远程服务器链接软件iTerm2,配置好远程服务器链接配置 点击 iTerm2 的设置界面 Advanced -> Triggers 的 Edit 按钮,增加两条配置 然后再/usr/local/bin/目录下增加iterm2-recv-zmodem.sh和iterm2-send-zmodem.sh文件 1. 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 domain osascript -e ‘tell application “iTerm2” to version’ > /dev/null 2>&1 && NAME=iTerm2 || NAME=iTerm if [[ $NAME = “iTerm”… 查看更多 »

Sidebar