MacOS右键助手 Ghostty 打开新窗口
2026/7/10 6:05:18 网站建设 项目流程

在 MacOS 上打开 Ghostty 总是 新标签打开,换成新窗口又不能进入路径。所以使用AppleScript来处理这个:

set targetDir to do shell script "p=@rfpath; if [ -d \"$p\" ]; then printf '%s' \"$p\"; else dirname \"$p\"; fi" tell application "Ghostty" set cfg to new surface configuration set initial working directory of cfg to targetDir set win to new window with configuration cfg activate end tell

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询