This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # iterm_smart_paste.sh — iTerm2 零配置剪贴板文件/图片粘贴 | |
| # | |
| # 功能: | |
| # 1. Finder 中复制的文件 → 保留原始文件名上传到远程 | |
| # 2. 截图/图片数据 → 以 clip_<时间戳>.png 上传 | |
| # 3. 自动检测当前 iTerm2 会话的 SSH 连接和远程主机 | |
| # 4. 超过 20MB 的文件自动跳过并提示 | |
| # | |
| # iTerm2 快捷键设置: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root = true | |
| # Unix-style newlines with a newline ending every file | |
| [*] | |
| end_of_line = lf | |
| insert_final_newline = true | |
| charset = utf-8 | |
| [*.json] | |
| indent_style = space |